How to create ls in windows command prompt?

前端 未结 19 2272
一向
一向 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:09

    You could:

    • create a batch file called ls.bat and have it contain the dir command only
    • add the directory where the ls.bat file exists to your PATH environment variable

    You could then execute ls from a command prompt.

提交回复
热议问题