



If you’ve ever needed to lock your windows up while you are away for a while (ex. jump out really quick out of your working desk) you probably know the shortcut WINKEY+L - this works in all windows versions. You have probably thought if you can make it locked by starting a file this might be your solution. Why do you need to lock your computer with a command (or starting file)? Here is two major reasons:
Well, if you use a simple windows command with particular options (which is documented in windows documentation) you can lock your session:
%windir%\system32\rundll32.exe user32.dll, LockWorkStation
This works no matter where your windows installation is.
So if you need a command the above line is for you. But if you need a file to be run you can create one by following this steps (this is for Vista, in all other “modern” versions - Windows NT/2000/2003/XP is similar, I haven’t tested it in Windows 95/98/ME though):
That’s it. If you don’t like the icon of the shortcut you can change it in the well known way - right click on the shortcut, hit PROPERTIES, choose SHORTCUT tab and press CHANGE ICON button. Then choose an executable file (or DLL) to take the icon from. There is a lot if icons in Vista in this file: “%SystemRoot%\system32\imageres.dll”. And for all windows versions you can use “%SystemRoot%\explorer.exe”. You can use custom icon (EXE,DLL) file too.
Hope this will solve some issues.






More Options ...
Categories
Tag Cloud
Blog RSS
Comments RSS
Void « Default
Life
Earth
Wind
Water
Fire
Light 
Good for people to know.
Thank you!
Greatings,
Not sure that this is true:), but thanks for a post.
Have a nice day
Pett
Well, all I did is an Internet research - these are all windows- implemented functions. I tested and actually use it all the time. When you try and it doesn’t work - share it so I can help.
Hi there,
Thank you! I would now go on this blog every day!
Thank you
Eremeeff
Hi, very nice post. I have been wonder’n bout this issue,so thanks for posting
Hello. I think the article is really interesting. I am even interested in reading more. How soon will you update your blog?
Hi! I like your srticle and I would like very much to read some more information on this issue. Will you post some more?