How to create ls in windows command prompt?

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

    my ls.bat was below

    @dir %*
    

    that can transfer cli args

    ls /b
    ls /w
    

    put it in %windir% or any directory in your %PATH% variable.

    Just make sure you save the file with ANSI encoding :)

提交回复
热议问题