如何在Windows命令提示符下创建ls? [英] How to create ls in windows command prompt?
本文介绍了如何在Windows命令提示符下创建ls?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在Windows命令提示符下使用ls,并让它运行dir命令。
我该如何做?
<您可以:
- 创建名为<$ c $的批处理文件c> ls.bat ,并且只包含
dir
命令 - code>环境变量
b
然后,您可以从命令提示符执行 ls
。
I want to use ls in windows command prompt and make it run the dir command.
How can I do that?
解决方案 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.
这篇关于如何在Windows命令提示符下创建ls?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文