Not able to launch bat file form VBScript if path contains a space
I have been trying to launch myFileToRun.bat file from a path for example. D:\My Folder\batchfiles\myFileToRun.bat Below is the VBScript through which I'm trying to run it. Dim WshShell, strCurrentDirectory Set WshShell = CreateObject("WScript.Shell") strCurrentDirectory = WshShell.CurrentDirectory WshShell.Run strCurrentDirectory & "\myFileToRun.bat" , 0 Set WshShell = Nothing I'm not able to run it, as VBS is thowing error sayin "System cannot find the file specified" I have tried various methods mentioned in other similar posts in stackoverflow and other forums. Most of them say to add