Create an alias in Windows

Printer-friendly versionPDF version

Recently, I wanted to create shortcuts for git commands. I can have written aliases inside the git config file, but then also, I had to type git explicitly. So, I just searched the internet and came across this link: http://superuser.com/questions/49170/create-an-alias-in-windows-xp.

And I just wrote few quick aliases using the doskey in a file called 'a.cmd'. Now I just type 'a' and press TAB and ENTER in the command prompt and set aliases quickly. I don't want it to be automatic, so I just manually run the a.cmd whenever needed. Here is how my a.cmd looks like initially:

doskey st=git status
doskey log=git log
doskey +=git add $1
doskey co=git commit
doskey ..=cd ..
doskey bin=cd "D:\Project\Release\"
doskey src=cd "D:\Project\"

No votes yet
Cruz Malinchalk's picture

diabetes cure

Looks great! Saw a site about Saw Palmetto for women Looks like a great site so far, with updated content. http://www.herbaldb.com/bitter-melon/20110504/take-bitter-melon-for-diabetes-management/ -M. Grundler~ It is easy to take liberty for granted when you have never had it taken from you.