VBscript scheduled task error -
i have vbscript number of tasks, including moving files 1 place another.
lots of copy/move/create folder/delete folder/delete files this
set filesys = createobject("scripting.filesystemobject") filesys.copyfile "d:\test now\test.txt", "w:\test_2\test.txt"
i'm able entire script work when run manually double clicking , no errors come up. however, when run scheduled task error shown "path not found". found error writing error db.
if
on error resume next
is off script stuck in error. set on, script skip operations not carry out function.
i've quadruple checked paths make sure right. there should aware of when running scripts scheduled tasks?
are d:\ , w:\ local drives, or mapped network drives? if they're mapped, user running process might not have drives available. sure run task privileged local account. it's best log in account , run command manually. once verify works, can tighten security if that's concern.
Comments
Post a Comment