If so, here's a quick way to create those shortcuts to execute either restart, shutdown or hibernate. Windows XP and Vista, include the built-in command shutdown. The shutdown command is also available for Windows and servers. The basic options for shutdown. On Vista only the hibernate option is. In the Type the location of the item text field enter:. NOTE: following screen shots are from Vista. Windows XP Create Shortcuts wizard will look a little different but the steps are the same.
Then click next to continue and give the shortcut a name and click Finish. If you want to delay the time for restart, shutdown, log off, or hibernate Vista only , you can use the -t switch to set a timeout delay for the command to execute. In the example above, adding timeout to the command for 10 seconds would look like this:.
If you prefer to use the the keyboard, you can easily add a keyboard shortcut to the new shortcut by following the steps outlined in the article Create Keyboard Shortcuts on Windows. I don't know of anything that can prompt the user to cancel other than writing code , but what you can do is open up a command prompt and type.
Or create a second shortcut using the above command. This way you can quickly click it instead of opening a command prompt.
For what ever reason, you user account does not have the right to shutdown the system when executing the shutdown command which is interesting since you can probably shut down from the Start menu. Your best work around is to set run the shortcut with alternate credentials admin account when it is launched.
To do this:. After clicking on the shortcut, you will be able to select an account with admin rights and need to enter the password. Ya I tried that, selecting an admin account, but it still does not shut down when clicking the shortcut icon nothing happens, no message appears. The administrator should appear in the welcome menu, and usually they're not password protected. Get in and change your account to an admin account. Type in. In vista it is possible to run the shortcut as administrator by right clicking the shortcut and choosing run as administrator.
Change Power Schemes Using Shortcuts Just created a profile that shuts off the monitor in 1 min, then used the above link to turn it into a shortcut, and then used a windows macro editor to execute the shortcut and log out at the same time. This forum has many people who spend their time on their forum trying to help out when they can but not everyone knows the answer to all questions or has the time to answer them.
There are many people that just opened the topic to see if they help and when they didn't know the answer they left either because they knew someone that did have the answer would come along or they did not have the time to answer it.
Justin is correct, it sometimes takes people a while to research the proper solution. It appears I was too slow in appending the answer of using NirCmd to the end of my post.
It seems great geeks think alike That would make a good article. Also after looking at your wizmo example I remembered that NirCmd could do that too and more.
Examples: Wait 1 second and then turn the monitor off: [code]nircmd. As to weather it works with that on or with Windows XP, I don't know. Would require some testing. LH, wouldn't that powercfg command permanently change the monitor timeout in the current scheme to 0?
Also, that's 0 seconds which might actually disable the feature. Why don't you experiment with it on your system and let me know. I'm not sure I could undue such a setting during the 0 seconds that the display is on! I went into Power Options and set the display timeout to "Never" in the current scheme then used powercfg to look at the value of the timeout value. It's 0, so 0 means never timeout, never turn off the display. Much like it's sometimes hard to see sarcasm over text, it's sometimes hard to see genuine comments when they are intended as such.
I can see how my "2 seconds" comment may have come across the wrong way. I offer my apologies. I really was thankful for the people who at least bothered looking. I think this site is fantastic. I'm not sure whether to post this in a new thread or just put it here since it's a similar inquiry. I was wondering whether there's a command or a program out there that shuts down your computer while exiting out of any programs after a specified of hrs.
For example say I want to run an error check on my hard drive at night, but I don't want to leave my computer on the whole night, is there some sort of program that would shut the computer down after about 2 or 3 hrs. Or if I'm running Norton at night is there something that would do the same while exiting Norton before shutting down? The article is for Windows Server but I'm sure it would apply to other versions of Windows too.
0コメント