Windows自动化操作
创建文件夹
md xxx
删除文件夹
rd /q xxx
删除文件
del /q xxx
复制文件
copy source target
copy source target_dir
调用
有时候,调用外部程序可能只执行第一条就结束了,所以用call,这样能在bat后自动执行
call
使用python实现上述
使用os和shutil等即可。
md xxx
rd /q xxx
del /q xxx
copy source target
copy source target_dir
有时候,调用外部程序可能只执行第一条就结束了,所以用call,这样能在bat后自动执行
call
使用os和shutil等即可。