View Full Version : Help with Creating cmd File
cerda
07-21-2005, 11:22 PM
I want to create a cmd file that will be able to do the following:
1 - Lock computer (via Win+L, or however else)
2 - Execute "C:\Program Files\Power Management\Turn Monitor Off.exe" (which turns off my monitor)
I want to create this cmd file so that I can execute both tasks above with only one hotkey. If anyone can tell me what exactly should be in the cmd file, that would be very helpful.
cerda
07-22-2005, 08:36 AM
After doing some research, I've found that the computer can be locked by executing the following:
"C:\Windows\System32\rundll32.exe user32.dll, LockWorkStation"
So now I just need to figure out how to get everything into a cmd (or bat) file.
Ken_ver_1_5
07-22-2005, 09:44 AM
the bat file may work just put both commands in save it test it out.
not really sure how the key is assigned.
StevenC
07-22-2005, 12:06 PM
To assign the key, try creating a shortcut. Then right-click on the shortcut and choose Properties. Place the insertion point in the Shortcut Key field and press the key combination. Click OK to save changes and try it out.
andyman
07-22-2005, 04:11 PM
what operating software are you using cerda
you need to combine what Ken and Steven are suggesting
A Batch File linked to the key
But M$ does do this for you by the way of a password screen saver
then just time the Power Management to turn off the monitor after a certian time then choose what time you want the PC to go into suspend ... or shut down.
Bluvertigo
07-22-2005, 04:46 PM
This should help you out.
Different Ways to Lock Windows XP
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=70
Bluvertigo
07-23-2005, 08:40 AM
How to use the SysKey utility to secure the Windows Security Accounts Manager database
http://support.microsoft.com/kb/310105
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.