Bite my bytes

What I learn by day I blog at night - A blog from Microsoft Consultant working from Ljubljana, Slovenia

  Home :: Contact :: Syndication  
  999 Posts :: 7691 Comments :: 235 Trackbacks

Search

Most popular posts
in last 360 days

Categories

My Projects

Archives

Stuff


Copyright © by David Vidmar
 
Contact me!
 
LinkedIn Profile
 
 
 

If you ever used 4DOS or 4NT you probably remember the feature they call "alias". You can take command with parameters and assign it a short name. It really helps with daily command line chores.

But if you don't have 4DOS/4NT you have to be resourceful. This is what I do:

  • create a folder (I usually name it something line CommandAlias)
  • put a path to new folder in your system PATH variable (shortcut is Win+Pause / Advanced / Environment Variables)
  • now create a .bat file with a nice short name and put a command you would to to create a alias into that file (you can use @echo off and put a @ in front of every command in order to make it silent)

And there you have it! A nice little alias feature is born.
I use it daily. Fore example "e" switches to the right disk and moves me in the right folder:

@echo off
@d:
@cd \Evolve\Evolve
Posted on Tuesday, March 21, 2006 10:31 PM | Filed under: System |

Feedback

# re: Nice command line trick 3/23/2006 5:11 PM CypherBit
Nice tip indeed. Thank you!

Comments have been closed on this topic.