HELLO
MY NAME IS
JOSH RACHNER
&
I'M A TECHNOLOGIST

← Back to posts

Creating terminal aliases for MS-DOS

14 Jun 2010 - No Comments
If you use the MS-DOS command line and find yourself frequently using the same commands in repeition, you can create aliases for the commands to help speed up your work environment. Here’s an example:
1. Navigate to C:WINDOWSsystem32 (this is your system path)
2. Create a file named home.bat
3. Inside the file add this: cd C:Documents and Settings<your-username>
4. Make sure that <your-username> is substituted with your username. For my computer I use: cd C:Documents and Settingsjrachner
5. save the file
6. Open the command line and type: home
7. Notice how it takes you right to the directory you specified in your script

If you read my blog post about starting/stopping services through the command line: http://joshrachner.wordpress.com/2010/06/14/windows-services-startingstopping-services-through-the-command-line/
then you can leverage terminal aliases for starting/stopping services quickly.

Leave a Comment