I'm using windows and creating a shortcut to call the following.
I have created the VBS script to not show the batch window (run hidden).
inv.vbs = CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
I want to pass a parameter to the batch, something like:
\\myserver\myfolder\inv.vbs \\myserver\myfolder\mybat.bat 2
Where 2 is the parameter. The shortcut will run the batch without showing the window but doesn't pass any arguments to the batch. If anyone has any ideas that would be great.