Run myVBS Scheduled Task

I have a vbs code that i would like to run via a scheduled task. Say myVBS.vbs; I have created another batch file where called my task as : cscript.exe //nologon c:\myVBS.vbs Of course, nothing happened. When i execute myVBS.vbs (via mouse or keyboard, enter command) it works fine. I am open to any suggestion as to run this task but rather automatically and on timely scheduled. Thank you all for your help.

1 Answer

You might want to try logging the cscript output, to find out what goes wrong:

cscript.exe //Nologo myVBS.vbs > "%TEMP%output.txt" 2>> "%TEMP%\errors.txt"

Plus mind the typo (//nologo*n*) in your question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest