How To Auto-launch VBscript with Elevated Privileges
For cases when you need to execute a VBS script (*.vbs file) as admin with elevated privileges you can try the following snippet. This can be done by running ShellExecute and setting the runas flag to run an executable or to run an entire script (batch file or VBScript)...
How To Write Windows Environment Variables With VBScript
This is in continuation to the last post where we saw how to read windows environment variables using VBScript. As mentioned in the last post, we can use the following preferred methods to achieve this : Using the WSH Shell object Using WMI's Win32_Environment class In the below example...
How To Read Windows Environment Variables With VBScript
Reading an environment variable is simple. There are a couple of methods available to do this but the main preferred ones are the below two : Using the WSH Shell object Using WMI's Win32_Environment class In the below example we would be using the WSH Shell's Environment method. For 'envVarType',...
- Advertisement -
How To Load XML File into DOM Using MSXML
Microsoft XML Core Services (MSXML) provides two methods for loading XML documents into the Document Object Model (DOM) and one method and one property for serializing that object model back into an XML stream. The load and loadXML methods parse documents into a DOM. You can use the load method to load an XML file by...
How-To VBScript
POPULAR | TAGS
LATEST POSTS
Basic PowerShell Commands That You Should Know
One of the key benefits of PowerShell is its object-oriented nature. Instead of working with text-based output like traditional command-line interfaces, PowerShell returns objects...
How To Always Open Files in New Tab in VSCode
The VSCode has rocketed its way to one of the top development IDEs due to its fresh look, usability, tons of feature sets, and...
How To Install Oh-My-Posh On Windows PowerShell
Oh-My-Posh is a powerful custom prompt engine for any shell that has the ability to adjust the prompt string with a function or variable....
Common OpenSSH Commands Reference
Secure Shell, sometimes referred to as Secure Socket Shell (SSH), is a protocol which allows you to connect securely to a remote computer or...
TOP | CATEGORIES
Most Commented
Interpreted Vs Compiled Languages
This is based on an excerpt from one of my favourite literature on VBScript and in fact, is quite relevant with respect to one of...