Lemonsyyz Posted May 23, 2017 Share Posted May 23, 2017 I'm trying to get the a variable to be sent right after "shutdown -s -t" but it only seems to send the part in quotes. I've been looking at @CmdLine but I can't seem to understand it or even if it would help me achieve what i'm trying to do. Also, I didn't know how to word the title of this post so hopefully it's not completely wrong. RunWait(@ComSpec & " /k" & "shutdown -s -t" & $SDTs) Link to comment Share on other sites More sharing options...
Floops Posted May 23, 2017 Share Posted May 23, 2017 (edited) I don't know what's in your variable but could it be that you have to add a space after "-t" and after "/k"? RunWait(@ComSpec & " /k " & "shutdown -s -t " & $SDTs) Edited May 23, 2017 by Floops Link to comment Share on other sites More sharing options...
Lemonsyyz Posted May 23, 2017 Author Share Posted May 23, 2017 Ah, thank you @Floops that works. So I guess it was sending but it had no spaces. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now