I just want to execute a batch file stealthly from vb script. My vb script contains the following lines; but it doesn't work. Any idea what I am missing?
Dim min Dim WshShell min = InputBox("Enter the number of mins :") Set WshShell = CreateObject("WScript.Shell") WshShell.Run chr(34) & "C:\Users\XYZ\Desktop\test.bat " & min & Chr(34), 0 Set WshShell = Nothing