Jump to content

having trouble with quotes on this one


gcue
 Share

Recommended Posts

im having trouble getting this command to work.. its definitely a quotes issue

trying to get quotes right around the "shutdown...... /st" and quotes around the $Guictrlread($message)

Run(@ComSpec & ' /c schtasks /create /s \\' & $asset & ' /Ru SYSTEM /sc once /tn Dashboard-Restart /tr "shutdown -r -f -t 300 -c ' & '"' & GUICtrlRead($message) & '"' & '" /st ' & GUICtrlRead($time), "", @SW_HIDE)

exemple I use in a script for playing video with MPC

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...