I have a wsh file in with some arguments. It runs fine with a shortcut passed required arguments. When I specified the same command line in schedule task. It seems the wsh cannot read arguments. So I have to use a bath file comes with argument run on the task. Then it works.
On schedule task:
the a.wsh won't see all the arguments
Bath file a.bat
On task:
Then it works fine.
On schedule task:
Code:
c:\script\a.wsh a1 a2
Bath file a.bat
Code:
c:\script\a.wsh a1 a2
Code:
c:\script\a.bat
Comment