|I'll add more information for clarity. I was told to keep my parameters out of the quotes, which I tried. However that did not solve my problem. I'll try to provide as much info as possible.|
In the root of C:\ I have a folder called "test". In that folder are 3 files; test.bat, start.vbs, shortcut.lnk. Here are the contents of each.
echo Parameteter = %1> Var.txt
set param1 = wscript.Arguments
CreateObject("Wscript.Shell").Run "test1.bat" & param1,0
Target: C:\test\start.vbs Testing
Start in: C:\test
When I double click shortcut.lnk, I get the following error:
In this case, Var.txt is not even created, so it does not even reach the part where it's supposed to start the batch. I have no clue what is wrong as I am very inexperienced in VBS. Thanks for your help.