How to create ls in windows command prompt?

前端 未结 19 2286
一向
一向 2020-12-07 08:34

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

How can I do that?

19条回答
  •  不思量自难忘°
    2020-12-07 09:14

    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

提交回复
热议问题