Sign in to follow this  
Followers 0
MarkMarkMark

Error opening powercfg.cpl

2 posts in this topic

Hej guys,

i want to goto powercfg.cpl trough a .au3 script...

in winxp... u goto start > run > powercfg.cpl

This works... but when i try in a autoIT script something like this:

run("c:\windows\system32\powercfg.cpl") then it gives a error....

how can i make this work?

Mark.

Share this post


Link to post
Share on other sites

Run ("rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl")

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