Jump to content
Lemonsyyz

Sending variables with @Comspec

Recommended Posts

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)

Share this post


Link to post
Share on other sites

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 by Floops

Share this post


Link to post
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

×
×
  • Create New...