批处理命令整理

Windows自动化操作

创建文件夹

md xxx

删除文件夹

rd /q xxx

删除文件

del /q xxx

复制文件

copy source target
copy source target_dir

调用

有时候,调用外部程序可能只执行第一条就结束了,所以用call,这样能在bat后自动执行

call

使用python实现上述

使用os和shutil等即可。

posted @ 2021-07-10 16:29  大浪淘沙、  阅读(321)  评论(0)    收藏  举报