Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-16-2004, 05:29 PM   #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?
KlumpDud is offline   Reply With Quote
Old 02-16-2004, 05:43 PM   #2
Lest we forget
 
ghost2003's Avatar
 
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
ghost2003 is offline   Reply With Quote
Old 02-16-2004, 06:32 PM   #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"
KlumpDud is offline   Reply With Quote
Old 02-16-2004, 06:36 PM   #4
Member (11 bit)
 
Doobie's Avatar
 
Join Date: Jul 2002
Location: Mexico
Posts: 1,049
Send a message via AIM to Doobie Send a message via Yahoo to Doobie
check out MICRO MAGIC... that could do the trick.
Doobie is offline   Reply With Quote
Old 02-16-2004, 07:42 PM   #5
Member (10 bit)
 
Join Date: Dec 2001
Posts: 592
what is micro magic? a program?
KlumpDud is offline   Reply With Quote
Old 02-16-2004, 10:06 PM   #6
Member
 
DragonNOA1's Avatar
 
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*
DragonNOA1 is offline   Reply With Quote
Old 02-16-2004, 10:33 PM   #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
KlumpDud is offline   Reply With Quote
Old 02-17-2004, 10:35 AM   #8
Member (11 bit)
 
Doobie's Avatar
 
Join Date: Jul 2002
Location: Mexico
Posts: 1,049
Send a message via AIM to Doobie Send a message via Yahoo to Doobie
http://www.iolo.com/mm/index.cfm

Quote:
How many of the same things do you do every day with your computer? With Macro Magic you can transform those tasks into a macro. Once created, you can run your macros instantly via HotKeys, MagicKeys™, Windows Shortcuts, have your macros respond when certain windows appear, or have them run after your computer has been idle for a specified amount of time. Use Macro Magic's extensive menu driven tool palette to launch and control programs, access and navigate web sites, automate data entry, access all of those buried menu options that you can never remember, and even schedule macros to run unattended using Windows Task Scheduler.

Macro Magic's Corporate Edition has support for secure network sharing and administration of macros built right in, allowing you to centralize macros for your entire organization. Try Macro Magic today and see how it can benefit you and your organization.
Doobie is offline   Reply With Quote
Old 02-17-2004, 04:08 PM   #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.
KlumpDud is offline   Reply With Quote
Old 02-17-2004, 11:15 PM   #10
Lest we forget
 
ghost2003's Avatar
 
Join Date: Jun 2003
Location: Ontario, Canada
Posts: 1,870
...maybe you should be asking how to fix it instead
ghost2003 is offline   Reply With Quote
Old 02-18-2004, 12:18 AM   #11
Member (10 bit)
 
Join Date: Dec 2001
Posts: 592
i did but no one answered
KlumpDud is offline   Reply With Quote
Old 03-01-2004, 02:43 AM   #12
Member (10 bit)
 
Join Date: Dec 2001
Posts: 592
bump
KlumpDud is offline   Reply With Quote
Old 03-01-2004, 10:22 AM   #13
Member
 
DragonNOA1's Avatar
 
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.
DragonNOA1 is offline   Reply With Quote
Old 03-01-2004, 04:56 PM   #14
Member (10 bit)
 
Join Date: Dec 2001
Posts: 592
Quote:
Originally posted by DragonNOA1
you prolly have to replace the control panel "power options" applet. you can try sfc.
please explain
KlumpDud is offline   Reply With Quote
Old 03-01-2004, 05:17 PM   #15
Member
 
DragonNOA1's Avatar
 
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.
DragonNOA1 is offline   Reply With Quote
Old 03-02-2004, 02:27 AM   #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?
KlumpDud is offline   Reply With Quote
Old 03-02-2004, 10:07 AM   #17
Member
 
DragonNOA1's Avatar
 
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.
DragonNOA1 is offline   Reply With Quote
Old 03-02-2004, 07:01 PM   #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?
KlumpDud is offline   Reply With Quote
Old 03-02-2004, 07:14 PM   #19
Member
 
DragonNOA1's Avatar
 
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!
DragonNOA1 is offline   Reply With Quote
Old 03-03-2004, 12:28 AM   #20
Member (10 bit)
 
Join Date: Dec 2001
Posts: 592
i think i'll start a new thread asking this question
KlumpDud is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:09 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2