Document

Windows cmd命令行

查看当前目录:
echo %cd%

列出当前目录的所有文件
dir

跳转到 Desktop 文件夹:
chdir Desktop

跳转到当前目录的上一级文件夹
chdir ..

返回 home 目录
chdir %HOMEPATH%

创建一个可用于修改的新文件:
echo "my awesome file" > my_new_file.txt

复制到一个新文件夹
copy my_new_file.txt Documents

移动文件
move Documents\my_new_file.txt Documents\my_newer_file.txt

删除文件
del my_new_file.txt

运行文件
start file_path

默认打开浏览器
start "" "https://www.baidu.com"

posted @ 2023-04-30 11:05  周周周周周周207  阅读(27)  评论(0编辑  收藏  举报