Top "Vbscript" questions

VBScript (Visual Basic Scripting Edition) is an interpreted scripting language developed by Microsoft that is modeled on Visual Basic.

Try-Catch-End Try in VBScript doesn't seem to work

I'm trying the following code: Try ' DOESN'T WORK Throw 2 ' How do I throw an exception? Catch ex 'What …

vbscript try-catch
Error checking for NULL in VBScript

I have the following VBScript in a Classic ASP page: function getMagicLink(fromWhere, provider) dim url url = "magic.asp?fromwhere=" &…

asp-classic vbscript null nullreferenceexception nothing
Is it better to use NOT or <> when comparing values?

Is it better to use NOT or to use <> when comparing values in VBScript? is this: If NOT …

vbscript
How do I run a VBScript in 32-bit mode on a 64-bit machine?

I have a text file that ends with .vbs that I have written the following in: Set Conn = CreateObject("ADODB.…

vbscript 64-bit 32-bit adodb provider
How do I debug a stand-alone VBScript script?

I have a VBScript script that takes 2 command-line arguments and does some validation. I need to debug this to see …

debugging vbscript
How do I read a file line by line in VB Script?

I have the following to read a file line by line: wscript.echo "BEGIN" filePath = WScript.Arguments(0) filePath = "C:\Temp\…

loops vbscript readfile
How to run vbs as administrator from vbs?

Can anyone help me with running vbs from itself but with administrator rights? I need rename computer with Windows 8 via …

windows vbscript administrator elevated-privileges
How to Verify if file exist with VB script

How do I verify via VBScript if the file conf exist under Program Files (i.e. C:\Program Files\conf)? …

vbscript
Does VBScript have a substring() function?

Is there a substring() function in VBScript similar to Java's string.substring()?

string vbscript
Return value from a VBScript function

I have two functions, and I am trying to use the result of one function in the second one. It's …

function vbscript return-value