Jump to content

Task Scheduler: The system cannot find the file specified.


Recommended Posts

msgbox(0, 'What Yours Looks Like' , @ComSpec & ' "/c" "schtasks" "/create" "/tn" "Mytask-' & @UserName & '" "/tr" "' & FileGetShortName(@ScriptFullPath) & '" "/sc" "ONLOGON" "/ru" "' & @UserName & '" "/it" "/rl" "HIGHEST"', @SystemDir, @SW_HIDE)



msgbox(0, 'Probably Closer' , @ComSpec & '/c schtasks /create /tn Mytask-' & @UserName & ' /tr "' & FileGetShortName(@ScriptFullPath) & '" /sc ONLOGON /ru ' & @UserName & ' /it /rl "HIGHEST"', @SystemDir, @SW_HIDE)

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...