How to create ls in windows command prompt?

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

    If you just want to have cmd recognize ls as an alias for dir, you can use the doskey command (from this answer on superuser).

    This does not change the original command line parameter handling of the dir command.

提交回复
热议问题