|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
How do I...
create a batch file that on windows start-up opens up the "Power Options" control panel and then clicks "OK" automatically?
|
|
|
|
|
|
#2 |
|
Lest we forget
Join Date: Jun 2003
Location: Ontario, Canada
Posts: 1,870
|
You talking about making a icon that shutsdown your computer? If yes you can just make a shortcut with the target: shutdown -s -t 0
__________________
redqueen: Antec Sonata, Pentium-D 2.5GHz, MSI G31M3-L, 2GB ram, 320 GB HDD, OpenBSD hal9000: Lenovo T61, 2GB ram, 120 GB HDD, FreeBSD |
|
|
|
|
|
#3 |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
no, i'm not talking about shutting down my computer. you the control panel>power options? i want that to open up, then automatically select "OK"
|
|
|
|
|
|
#4 |
|
Member (11 bit)
|
check out MICRO MAGIC... that could do the trick.
|
|
|
|
|
|
#5 |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
what is micro magic? a program?
|
|
|
|
|
|
#6 |
|
Member
Join Date: Apr 2001
Location: Na Pali Haven
Posts: 2,812
|
Sorry to be nosey but why do you want it to do that? If it says OK without changing anything then there really is no point to doing it.
__________________
*The command line, an elegant weapon for a more civilized age* |
|
|
|
|
|
#7 |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
Actually, I have a problem where upon startup of windows, windows seems to "forget" my previous power options settings and my monitor will remain on forever unless I open up power options then click OK, thus "reminding" windows that I want the monitor to shut off after X minutes
|
|
|
|
|
|
#8 | |
|
Member (11 bit)
|
http://www.iolo.com/mm/index.cfm
Quote:
|
|
|
|
|
|
|
#9 |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
So need a program for the type of thing I want to do? I thought there might be a way to create a script or something like that to just bring up the power options then click OK.
|
|
|
|
|
|
#10 |
|
Lest we forget
Join Date: Jun 2003
Location: Ontario, Canada
Posts: 1,870
|
...maybe you should be asking how to fix it instead
|
|
|
|
|
|
#11 |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
i did but no one answered
|
|
|
|
|
|
#12 |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
bump
|
|
|
|
|
|
#13 |
|
Member
Join Date: Apr 2001
Location: Na Pali Haven
Posts: 2,812
|
you prolly have to replace the control panel "power options" applet. you can try sfc.
|
|
|
|
|
|
#14 | |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
Quote:
|
|
|
|
|
|
|
#15 |
|
Member
Join Date: Apr 2001
Location: Na Pali Haven
Posts: 2,812
|
type "sfc /scannow" into the run menu. I'm guessing you have XP right? Here is some useful info.
|
|
|
|
|
|
#16 |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
as you can see from my signature, i'm using windows 2000. however, i typed sfc /scannow into the run menu and it prompted me to insert the windows 2000 cd, which i did. it then ran for a while and a window with a loading bar loaded. once it was done, the window dissapeared and nothing else happened.
also, i read that link, what does it have to do with me? |
|
|
|
|
|
#17 |
|
Member
Join Date: Apr 2001
Location: Na Pali Haven
Posts: 2,812
|
Search for "powercfg.*" . If you find powercfg.cpl, rename it and let sfc run to see that it's missing so that it can be replaced. If you find powercfg.inf, then maybe you can change some settings in there and have it over-write the existing file every time you boot up by using a batch file. I really don't know what else to do, hopefully someone else has some ideas. Good luck!
Last edited by DragonNOA1; 03-02-2004 at 10:19 AM. |
|
|
|
|
|
#18 |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
i searched for powercfg.* and it found two files called powercfg.cpl. the first is located in C:\WINNT\system32 and the second is located in C:\WINNT\ServicePackFiles\i386
which one am i dealing with here? |
|
|
|
|
|
#19 |
|
Member
Join Date: Apr 2001
Location: Na Pali Haven
Posts: 2,812
|
C:\WINNT\system32
Make sure when you rename it that you know what you renamed it to in case sfc doesn't work for some reason. Good Luck! |
|
|
|
|
|
#20 |
|
Member (10 bit)
Join Date: Dec 2001
Posts: 592
|
i think i'll start a new thread asking this question
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|