How to lock Windows by running a file (or command)

by on May.20, 2008, under system

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:

  • A user has to be logged on so an application to be started (Torrent client, simple FTP/HTTP server, etc);
  • You might want to lock the computer in certain cases (after an application ends, at exact time and so on);
  • Of course there is more cases you need to lock you windows session…

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):

  1. Right click on your desktop and choose NEW then SHORTCUT;
  2. Paste this: %windir%\system32\rundll32.exe user32.dll, LockWorkStation in the field “Type the location of the item:”;
  3. Click NEXT then name the shortcut as you like (ex. LockWin), then hit FINISH.

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.

8 Comments :, , more...

Delete random auto-complete entry in Firefox

by on May.19, 2008, under internet

OK, here it is our first post which does not mean that it’s the most important one…

First I want to mention that there is a way to delete all the private data you have entered in Firefox:

TOOLS->OPTIONS->PRIVACY “Private Data” field.

When you press “CLEAR NOW” button you have a choice which one (Browse History, Search History, Saved Form and Search History, Cache, etc.) to be wiped out. But what if you need most of the data and you want only part of it out?

This post is about the auto-complete feature (It is actually called Saved Form and Search History in Firefox options) – if you like using it but you are pissed off of all the entries you had entered by mistake or they are not relevant anymore than you really need to get rid of them. So this is the way you do it:

  1. Start typing in the field that has the entries or just press ALT+”down arrow” – this should bring the select list up;
  2. Select unwanted entry and hit CTRL+DEL or SHIFT+DEL – whatever is more convenient to you, both work;
  3. Repeat step 1 and 2 for all unwanted entries;
  4. Enjoy having only required entries.
Leave a Comment :, , more...

Hello world!

by on May.19, 2008, under general

OK, what is this site about? Well I learned for all these years so many tricks for tunning my computer, network equipment, internet shopping and even not computer related smart tricks that I don’t even remember all of them. So I have to google’em each time when I need one. And I hope this site will contribute to the global tips/tricks/hint storage and help people find the required search easier.

“When Do I Have To Post A Trick?” – well every time when you find a cool way to do something that is not very well documented or you found a way to do stuff easier than all other do, then you should share it with all of us, don’t you think? I will give you a couple of examples:

Learn how to use/delete Firefox auto-complete entries smarter.
How to prevent car doors from freezing tonight?
How to teach my dog in keeping the yard poop-free.
…and so on.

So everyone who finds a trick – feel free to contact me and your trick might appear here and you might even be the next poster in TIPATRICK.COM, who knows?!

Leave a Comment : more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...


All entries, chronologically...