Sign in to follow this  
Followers 0
speedi

runwait command

4 posts in this topic

I tried this:

RunWait("powercfg.exe" & "/change " & chr(34) & "home/office desk" & chr(34) & " /monitor-timeout-ac 5",,)

It does not work due to problem with quote marks I think.

I am trying to do this, which does work in a command window.. (powercfg /change "home/office desk" /monitor-timeout-ac 5)

I always have problems with quotes in my run command lines... Thanks for any hep provided!!! Jim

Share this post


Link to post
Share on other sites



RunWait("powercfg.exe " & '/change "home/office desk" /monitor-timeout-ac 5', "", "")

if you want to put some parameters in command line make sure there is a space between file path and parameters.

use '' instead of "" if needed.

Share this post


Link to post
Share on other sites

Try this.

RunWait("powercfg.exe /change ""home/office desk"" /monitor-timeout-ac 5")

Great! Thanks! Looks a lot simpler than what I did!!!! sure do appreciate your help!

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
Sign in to follow this  
Followers 0