Search code examples
windowswindows-xpcmdlsdir

How to create ls in windows command prompt?


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

How can I do that?


Solution

  • 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.