Power Options applet in the Control Panel

A

Alain Dekker

Hi,

I'm trying to load the 3rd tab of the Power Options applet (Hibernate) but
without success. According to a few Google searches, I should be using:

"C:\\WINDOWS\\system32\\control.exe powercfg.cpl,,2"

but this only ever opens the 1st tab (Power Schemes). On the Regional and
Language Settings applet, I can load the 3rd tab (Advanced) with this
command:

"C:\\WINDOWS\\system32\\control.exe intl.cpl,@0,2"

but trying this format (powercfg.cpl,@0,2) and anything else I could think
of just does not work with the Power Options applet. Anybody know if maybe
the Power Options applet does not support loading anything other than the
1st tab?

Thanks,
Alain
 
B

bradbury9

El jueves, 4 de julio de 2013 17:18:13 UTC+2, Alain Dekker escribió:
Hi,



I'm trying to load the 3rd tab of the Power Options applet (Hibernate) but

without success. According to a few Google searches, I should be using:



"C:\\WINDOWS\\system32\\control.exe powercfg.cpl,,2"



but this only ever opens the 1st tab (Power Schemes). On the Regional and

Language Settings applet, I can load the 3rd tab (Advanced) with this

command:



"C:\\WINDOWS\\system32\\control.exe intl.cpl,@0,2"



but trying this format (powercfg.cpl,@0,2) and anything else I could think

of just does not work with the Power Options applet. Anybody know if maybe

the Power Options applet does not support loading anything other than the

1st tab?



Thanks,

Alain

In case you are trying to do it using C#, it would require something similar to this:

Process processToRun = new Process();
processToRun.StartInfo.WorkingDirectory = @"C:\Windows\System32\";
// Could be also set to "%SYSTEMROOT%\system32\"
processToRun.StartInfo.FileName = "control.exe";
processToRun.StartInfo.Arguments = "intl.cpl,@0,2";
processToRun.Start();

Check the StartInfo property, it has lots of useful parameters.
 
A

Arne Vajhøj

El jueves, 4 de julio de 2013 17:18:13 UTC+2, Alain Dekker escribió:
In case you are trying to do it using C#, it would require something similar to this:

Process processToRun = new Process();
processToRun.StartInfo.WorkingDirectory = @"C:\Windows\System32\";
// Could be also set to "%SYSTEMROOT%\system32\"
processToRun.StartInfo.FileName = "control.exe";
processToRun.StartInfo.Arguments = "intl.cpl,@0,2";
processToRun.Start();

Check the StartInfo property, it has lots of useful parameters.

Process Start with 1 argument does not work. Process Start with
2 arguments or StartInfo should work.

But Process Start with 1 argument should give a:

System.ComponentModel.Win32Exception: The system cannot find the file
specified

Arne
 
A

Alain Dekker

Thanks for the replies, but unfortunately that does not work. I've tried
various combinations with the Power Options applet (powercfg.cpl) and the
1st tab is loaded only. It works fine with the Regional Options applet
(intl.cpl).

So my question remains whether this is a bug / limitation in the Power
Options applet or whether I've got the formatting right.

Note: You can test this easily from the command-prompt as well. Just load
the command prompt and type "control intl.cpl,@02,2". Then try "control
intl.cpl,@02,1" and so on.

Thankd and regards,
Alain
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top