标签:文件路径 mkdir rom put 写入 文件夹 txt highlight ash
@echo off set P=%cd% #获取脚本当前文件路径 del /f /s /q %P%\tmp.txt set Y=%DATE:~0,4% #获取年 set M=%DATE:~5,2% #获取月 set D=%DATE:~8,2% #获取日 echo open 10.101.0.42>>%P%\tmp.txt #把ftp命令写入 tmp.txt 里面 echo programlist>>%P%\tmp.txt echo programlist>>%P%\tmp.txt echo prompt off>>%P%\tmp.txt echo lcd %P%\file>>%P%\tmp.txt echo cd /2018/7>>%P%\tmp.txt echo mkdir %D%>>%P%\tmp.txt echo cd %D%>>%P%\tmp.txt echo mput *>>%P%\tmp.txt echo bye>>%P%\tmp.txt echo quit>>%P%\tmp.txt ftp -s:%P%\tmp.txt #执行tmp.txt的命令 pause echo 清空上传文件夹... #del /f /s /q %P%\file\*
标签:文件路径 mkdir rom put 写入 文件夹 txt highlight ash
原文地址:https://www.cnblogs.com/kuku0223/p/9307925.html