Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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!

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
  • Recently Browsing   0 members

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