Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run a file using VisualBasicScript (.vbs)

Tags:

file

vbscript

How can I run a file with VisualBasicScript (.vbs)?

The file is 'file.bat' and it's located in the same dir as the .vbs.

like image 711
Deniz Zoeteman Avatar asked Jun 05 '09 15:06

Deniz Zoeteman


People also ask

How do I run a VBS file in Visual Studio?

After the installation, launch Visual Studio, make sure that the JIT debugger is activated for "Script" (menu Tools > Options > Debugging > Just-In-Time). And then run the script using "C:\Windows\System32\cscript.exe" /x "My File. vbs" in the two flavors as explained in the other answers, that will start the debugger.

How do I run a VBS script in Windows 10?

Click the Start button, and then click Run. In the Open field, type the full path of the script, and then click OK. You can also type WScript followed by the full name and path of the script you want to run.


1 Answers

yes i want to run it.

Then try this:

CreateObject("WScript.Shell").Run "file.bat"
like image 70
Helen Avatar answered Nov 02 '22 09:11

Helen