How to create ls in windows command prompt?

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

    I have a solution but it's dirty:

    Create a file named ls.bat containing only "dir".

    Put it in C:\windows\system32 (or any directory in PATH env var).

    That (should) works!

    Edit: Something more consistent: https://superuser.com/questions/49170/create-an-alias-in-windows-xp

提交回复
热议问题