I want to use ls in windows command prompt and make it run the dir command.
How can I do that?
You could:
ls.bat
and have it contain the dir
command onlyls.bat
file exists to your PATH
environment variableYou could then execute ls
from a command prompt.