As most people that spend the majority of their lives staring at a windows box, I’ve gotten quite irritated by the repetitive tasks that I have to perform on a daily basis. Among others, the most prominent of these tasks is probably the browsing of files in both Windows Explorer and command prompt. So it got me thinking (and I’m sure I’m not the first – to think that is).
The easiest way to shorten the time you spend navigating, is to simply litter your desktop with shortcuts to various locations on your file system. However, the problem I have with this solution is that I’m not really a fan of the mouse or Britney Spears for that matter. Instead I’ve opted for the next best alternative, which I’m sure I’m not the first to think of, but it is a quick, easy and temporary solution that just works.
Basically, I’ve simply created a whole bunch of batch files, each with a popular command, such as to open Windows Explorer in a specific directory. These batch files, I’ve then grouped into one directory and added the directory to my path environment variable. Let me take you through an example:
If you’re a developer like I am, the most popular location on your file system is probably where you checkout your code from the repository. Chances are that the path to this repository check out is something like:
C:\some_useless_folder\another_useless_folder\repos\my_useless_app\
So instead of navigating to this folder every time in Windows Explorer, you could just do the following (I know this seems like a lot of work but that’s only because you don’t yet know what I’m talking about – that’s why you’re still reading after already having read the third paragraph):
1. Create a folder where you’ll keep all your batch files e.g.
C:\shortcuts\
2. In this folder create an empty batch file (just an empty text file with a .bat file extension) e.g.
C:\shortcuts\my_useless_app_e.bat
3. Open the above created “my_useless_app_e.bat” file and inside it enter the command to open Windows Explorer to the directory where you’ve got your app checked out e.g.
explorer “C:\some_useless_folder\another_useless_folder\repos\my_useless_app\”
4. You now have to add the directory containing your batch file to the path environment variable. I’m using Windows Vista (it’s not my fault, they gave it to me without asking), but in Windows XP it’s done in an almost identical way, so try and follow along:
4.1. Click the Start button, then right click “Computer” and then click “Properties”.
4.2. Click “Advanced system settings” (you see now we’re getting advanced).
4.3. On the dialog that opens up, click on the “Advanced” tab (now we’re getting even more advanced, hold on to your seat).
4.4. Click the “Environment Variables” button.
4.5. Under “System Variables” click the “New…” button. For “Variable name” enter “shortcuts” (can be an arbitrary name) and under “Variable value” enter the path to the directory where you created the batch file i.e. “C:\shortcuts\”. Click “OK”.
4.6. Under the list of “System variables” look for a variable called “Path”. Select it and click the “Edit” button.
4.7. Scroll to the end of the variable’s value and append the variable that we just created above i.e. just add “;%shortcuts%” (without the quotes) to the end of the value. WARNING: What ever you do, don’t remove any of the existing text in this variable’s value as you may find that many/most of your applications will no longer function correctly. Click OK to close this dialog box, then click OK again to close the “Environment Variables” dialog box and click OK one more time (last time I promise) to close the “System Properties” dialog box.
5. Lastly to test that your shortcut (command in batch file) works just open command prompt and type the name of the batch file that you created earlier e.g.
5.1. Hit the windows and the R keys together to open the “Run” dialog box.
5.2. Type “cmd” (without the quotes) to open command prompt.
5.3. Type the name of the batch file i.e. my_useless_app_e
The batch file should now run which should open Windows Explorer to the path:
C:\some_useless_folder\another_useless_folder\repos\my_useless_app\
If for some strange (or not so strange) reason this does not work, simply restart your computer – you see now I’ve even given you a Tech Support 101. Anyway, from now on, it’s smooth sailing every time you have a frequently used command, simply create a batch file containing the command in the “C:\shortcuts” directory and when ever you want to run the command, just open command prompt and type the name of the batch file … easy!.
But like I said earlier, this is only a temporary solution. The cleanest way would probably be to write my own app that holds popular commands. If someone knows of any apps that do this or other ways to improve your Windows navigation, please let me know.
I just found a nice quick way of creating and writing to a text file straight from command prompt. This will save you the agony of having to open Windows Explorer, create a txt file, open it with notepad, write your story and save it … whew (wipe forehead). So this is how we’ll do it:

The first command creates a txt file “MyCoolTextFile.txt” containing the text “Hello world!!”. The second command however, I’m sure you’ll find even more exciting as it displays the contents of the file we’ve just created. And what do you know, the contents is “Hello world!!!” just as we typed it in the first command. There are of course other ways of doing it, but I won’t be telling you how … uhm … because quite frankly I don’t have the energy nor the time to type up and test all the various methods.
Filed under: Computers
Here’s a cool app that I’ve come across that you can use to convert bitmaps to icons: http://www.qtam-computer.com/download.shtml
I just installed subversion on my machine at home. Being my usual clumsy self, I set the path to the svnserve.exe incorrectly when installing the subversion windows service and therefore the service failed to start when running the following command at the command prompt:
net start <service name>
In this case:
net start SVNService
The one way to resolve such an issue would have been for me to simply delete the service by running the following command:
sc delete <service name>
In this case:
sc delete SVNService
and then recreating/reinstalling the subversion service by running:
sc create <service name>
In this case (http://www.stanford.edu/~bsuter/subversion-setup-guide/):
sc create “SVNService” binpath= “C:\Program Files\Subversion\bin\svnserve –service -r C:\svn-repos” displayname= “SVNService” depend= Tcpip start= auto
The above approach would have required a reboot and so instead I opted for a different route by finding the service in the registry and correcting its image path. Fortunately this did not require a reboot. I did this as follows:
- Hit the Windows + R key to get the “Run” dialog box.
- Type regedt32 or regedit to open the Registry Editor.
- Underneath the following registry key you should find the key of the service you wish to modify. In this case it was the SVNService that I created:
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services
4. Within your service’s key you will find the string value “ImagePath”, which in this case should point to my svnserve.exe with the appropriate switch specifying the path to my repository i.e. C:\Program Files\Subversion\bin\svnserve –service -r C:\svn-repos\
Filed under: Computers
I was recently faced with the challenge of decompressing an e-book that came in the format of a rar file. Although decompressing the file is a rather simple task, I just didn’t feel like bringing WinRar, 7-zip or any other subterranean form of life onto my delicate new Lenovo IdeaPad.
The obvious solution was to try and make someone else do it for me. This someone happened to be http://wobzip.org/ . He promises to be able to decompress files which are under 100 meg and of the following formats: 7z, ZIP, GZIP, BZIP2, TAR, RAR, CAB, ISO, ARJ, LZHCHM, Z, CPIO, RPM, DEB and NSIS. Hearing the news of this valiant soldier living among us, I swiftly threw my 12 meg rar file at him without any hesitation. After a considerable amount of time that it took for the rar file to reach the “the one”, he rather rudely threw an exception back at me. Needless to say I was forced to take matters into my own hands and bring on WinRar on a contract basis i.e 40 day trial. Although WinRar was able to decompress my rar file, it turned rather ugly as I uninstalled WinRar and was left with all the file associations that he created for me. What can I say? Not all adventures have a happy ending.
Filed under: Computers
I recently got myself a new Lenovo IdeaPad Y510 laptop and there is one particular feature that I am partly impressed with, but also depressed about it and that’s the OneKey Recovery feature.
Lenovo creates three partitions on the hard-disk:
• C: partition that contains the OS and other preinstalled software. Capacity = 30GB
• D: partition which you’re meant to use for storing your data. Capacity = 188GB
• Service partition (without a drive letter) used to backup and restore the C: partition. Capacity = 15GB
In the event that something should go wrong with your C: drive, recovery is possible at the touch of a button. Using the service partition, the OneTouch Recovery will restore your C: partition to exactly how it was given to you from the factory. It just so happens that I was forced to take this feature for a test drive the same day I got the machine. I had tried to install an older version of Daemon tools, which turned out to be incompatible with Windows Vista … surprise, surprise. The result being that I couldn’t even take the machine past the boot-up screen. I could not even boot into safe mode … grrr!!! Looking at the pretty little sticker on the machine, I naturally decided to try the OneTouch Recovery feature and what do you know, it worked like magic. Therefore, this is clearly a nifty little feature.
On the other hand it is actually a pain the ass. Without thinking about it, I started installing all my software on the C: partition and now after just a few weeks, I’ve run out of space on it, but I haven’t run out of software to install. My initial idea was to just resize the C: partition accordingly, but after googling around I discovered that it may not be such a good idea. It seems that if I resize it, the OneKey Recovery feature will no longer work. The other solution would be to completely clean out the machine and start off fresh with a single partition, but this again would mean loosing a feature that I paid for. The last alternative, would be to go through the pain of using the OneKey Recovery to clean out the C: partition and reinstall all my software on the D: partition. The problem would then be that some applications do not allow you to install to anywhere else but to “C:\Program Files”. So what is one to do in such a predicament …