Board index » Visual Studio » VB script won't run via schedule task

VB script won't run via schedule task

Visual Studio204
I've wrote a VB Script to backup my exchange server and i put it into

schedule task to run every day.

first script does a full backup of storage groups and it do it fine

but the second script, which does an incremental backup, wont run.



I've checked s.task and i saw myscript is running, after few hours was the

same.

Event viewer show only in security tab myuser logon (user who is permited to

run script) and nothing else. After using end taks on myscript in schedule

tasks backup finished succesfully and everything was correctly written into

event viewer.



If i run script manualy, double click on myscript.vbs, everything is working

fine.





Any idea?

Thanks


-
 

Re:VB script won't run via schedule task

I fix it.



The problem was missing cscript string in run field, before path in schedule

task

something like this:



cscript C:\myscript



this is nessesary becouse i have command line switches in my script.



"Shedoks" wrote:



Quote
I've wrote a VB Script to backup my exchange server and i put it into

schedule task to run every day.

first script does a full backup of storage groups and it do it fine

but the second script, which does an incremental backup, wont run.



I've checked s.task and i saw myscript is running, after few hours was the

same.

Event viewer show only in security tab myuser logon (user who is permited to

run script) and nothing else. After using end taks on myscript in schedule

tasks backup finished succesfully and everything was correctly written into

event viewer.



If i run script manualy, double click on myscript.vbs, everything is working

fine.





Any idea?

Thanks

-