Posts

Showing posts from 2012

Copy Full Path of a File (Trick)

Image
Let's say , you need to copy the full location of a file to use somewhere else. Traditionally, you will open the file in Windows Explorer and then copy the path in the address bar and manually append file name to the end. Say you have a file(abc.txt) at E:\All\Training Material. When you copy path, you will first append file name at the end and then add double quotes("") since we have a space in folder name. To save time, you can use a trick in Windows Explorer. Trick: Just hold "SHIFT" key  when you right-click a file and select option "Copy As Path". CopyAsPath You will get the string as : "E:\All\Training Material\abc.txt". And you are ready to go using this. Tested on: Windows 7.

Open Command Prompt(cmd) directly from a folder

Image
Instead of opening command prompt and then moving into the required folder using "cd" command , you can use a simple trick available in Windows to do the same thing.  This requires no third-party software to be installed on your system. Steps: Move to the folder in which you want to use command prompt Hold "SHIFT" key and right-click in an empty area Select "Open command window here" This will open command prompt with path changed to your current directory rather than "C:\Users\Your User Name". Screen-shots : * you can also right-click on any folder icon in the system while holding down the shift key to do the same. Tested on :    Windows 7 Ultimate

Hide a Program from being listed in Add/Remove programs

Need to hide some program you have installed on some machine ?  Wanna prevent your program from being removed by admin ? Or wanna be safe from some security audit!!! Here's the Trick.... First the bottom line/concept   The Add/Remove Programs list is populated from the following registry key: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall. So ,we can modify the entries here ! The Hack begins... Just follow these steps( u must be admin ): Press start button + R. and goto "Run". type regedit. Move to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall. Here find the program you want to hide.(eg. Mozilla Firefox) In the right-pane, right-click the DisplayName value and choose Rename Rename it to anything (For example, NoDisplayName ) That's all. we are done. Now, windows does not know DisplayName for that program and will not load it in control panel. Do refer to this site for more details..

Open a Link in new tab/window without right-click

This trick is especially useful on sites like irctc.co.in , ultimatix and others which have right-click disabled on them (for some reasons).  Basically, these sites use JavaScript to do this. This can be broken by one-liner   JavaScript into address bar(where you enter site name). Just Write this on address bar of irctc :  javascript:void(document.oncontextmenu=null) Well,   I have found a very simple way that works on most sites. Just press CTRL key and left-click on the link , it will open in a new tab/window(depending on your browser settings.).  So , it has two benefits:          You can open links freely in sites that have disabled right-click        When link is opened in new tab, it does not switches over automatically (which I feel is irritating normally) . Enjoy the all-powerful CTRL key.  Keep Exploring.   Keep Discovering.

Lock computer (quick ways)

When you need to go for a while, you don't have to log-off and then again wait to login. You can do it in many quick ways. Here are these : 1. WindowsKey + L To immediately lock your computer, simultaneously press the Windows logo key (typically beside the Spacebar) and the l key (the letter L). 2. Make Desktop Shortcut Just for a single time do this. Then, you can double-click the icon to lock your machine.   -->Right-click the desktop, select New, and then Shortcut. This will open the Create Shortcut Wizard. -->For the location of the item, type:   rundll32.exe user32.dll,LockWorkStation Click Next. -->Type an appropriate name for this shortcut, and then click Finish. Now,you just have to double click this to lock machine. 3. ctrl+alt+del Press Ctrl-Alt-Del, and then click Lock this computer or Lock Computer. Have a quicker way, share...

Run a Program as Admin/administrator

Image
Some programs or some commands (like 'sfc') require you to run them through admin account only(not with d one having admin privileges).  You are  logged on with an account with admin privileges , but not as administrator. So, how to do it? (for windows 7) 1. Locate the file you want to run as admin. (eg. cmd.exe) through start menu. 2. right click and choose "run as admin" OR select the file and press Ctrl+Shift + Enter.  press alt+y when a dialog box appears. File will start in admin mode. Screenshots