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.
Use the FileSystemObject
Usage to open file:
Const ForReading = 1 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile(".\File.bat", ForReading)