I have a cmd file which I need to execute through vb scripting. The cmd file is not in C drive but in E drive.Do I need to first change the drive and then execute the command??
My script is as such
Dim objShell
Set objShell = WScript.CreateObject ("WScript.shell")
objShell.Run "E:\folder\abc.cmd"
Set objShell = Nothing
It just opens a powershell window and closes.
Any help would be greatly appreciated.Can someone please let me know if i am missing something.