How to create ls in windows command prompt?

aF. picture aF. · Feb 20, 2012 · Viewed 153.8k times · Source

I want to use ls in windows command prompt and make it run the dir command.

How can I do that?

Answer

secghost picture secghost · Feb 23, 2013

You can solve this question with one simple command:

echo @dir %* > %systemroot%\system32\ls.bat

Make sure you run cmd.exe as admin first if you are on vista and up