1. 将某一文件夹的文件名读入到TXT文档
DIR *.doc /B >filelist.txt
2. 获取当前时间
@echo %date%%time%
@pause
3. 运行python脚本(绝对路径,也可使用相对路径)
@python.exe G:\python_test\test.py
@echo end
4. 运行python脚本,脚本输出到txt文档
@python.exe G:\python_test\test.py > python_output.txt
@echo end
5. 复制 将某一文件夹下某类型文件复制到其他文件夹
copy /y D:\srcPath_XXX\xxx*xxx*xxx.xxx E:\dstPath\
6. 删除 将某一文件夹下某类型文件删除
del D:\filePath\xxx*xxx*xxx.xxx
7. bat脚本文件调用
call ListGet.bat
call del.bat
call copy.bat
8. 不显示批处理的语句及路径
@echo off