Top "Vbscript" questions

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

Run Excel Macro from Outside Excel Using VBScript From Command Line

I'm trying to run an Excel macro from outside of the Excel file. I'm currently using a ".vbs" file run …

excel vba command-line vbscript
ActiveX component can't create object

I have just installed a third party app on my Windows Server 2008 server and I get the ActiveX Component can't …

dll vbscript activex windows-server-2008 dllregistration
What's the environment variable for the path to the desktop?

I'm writing a Windows batch file and want to copy something to the desktop. I think I can use this: %…

windows powershell vbscript localization desktop
What does the "On Error Resume Next" statement do?

I came to some VBScript examples, and I saw the statement On Error Resume Next basically at the beginning of …

vbscript error-handling
Running command line silently with VbScript and getting output?

I want to be able to run a program through command line and I want to start it with VbScript. …

command-line vbscript silent
Getting current directory in VBScript

I'm trying to get the current directory and use it to run an application no matter where the file is …

vbscript directory
Getting the Username from the HKEY_USERS values

Is there a way to connect between the values under HKEY_USERS to the actual username? I saw some similar …

windows vbscript registry wmi
Adding quotes to a string in VBScript

I have this code: a = "xyz" g = "abcd " & a After running it, the value of g is abcd xyz. …

vbscript escaping string-concatenation
VBScript How can I Format Date?

I want the date to look like MM-DD-YYYY instead of MM/DD/YYYY.

date vbscript
Converting string to integer

PrinterLabel = Printer + PrinterNumber If Floors = 1 And (PrinterLabel) > 127 Then Wscript.Echo "Invalid Printer11 Selection " Wscript.Quit End If If Floors = 2 …

vbscript