Command aliases in DOS?

Posted by Benjamin Oakes on Super User See other posts from Super User or by Benjamin Oakes
Published on 2010-06-08T17:55:14Z Indexed on 2010/06/08 18:02 UTC
Read the original article Hit count: 421

Filed under:
|

How can I make command aliases in DOS like I would with bash?

I found out about doskey in a forum thread, so I can do something like:

doskey ls=dir /b

...and now the command ls acts a little more like ls on Unix. (I type ls so often in DOS, it isn't funny.)

But how do I get this to stick between sessions? It goes away the next time I open cmd.exe. (Is there something like .bash_profile?)

© Super User or respective owner

Related posts about dos

Related posts about alias