Windows Scheduler - 脚本执行错误

时间:2016-11-25 15:08:02

标签: windows batch-file cmd

我尝试设置Windows任务计划程序以运行下面的upload_xml.cmd脚本:

在这个脚本中我调用了其他几个有FTP命令的文件,但是当我运行我配置的任务调度程序时,它只运行到第2步。我该如何解决这个问题?

:Step 1
Echo step 1 - Check for xml files to process
Netsh advfirewall set allprofiles state off
Of xmls.list /f/q
Dir /s/b C:\xml\UPLOAD\*.xml xmls.list
Find /c ".xml xmls.list
If% errorlevel% equ 1 goto Exit
Echo step 1 - Files found
: Step2
Echo step 2 - run the ftp script to check if the connection exists
In10xml_connect /f/q
Ftp -s: download_connect.ftpget xx.xxx.xxx.xx
If not exist in10xml_connect goto Exit
Echo step 2 - SUCCESSFUL CONNECTION
: Step3
Echo step 3 - run the ftp script to check if you can send the files
In10xml_loader.lock /f/q
Ftp -s: download_lock.ftpget xx.xxx.xxx.xx
If exist in10xml_loader.lock goto Exit
Echo step 3 - UPLOAD CAN CONTINUE

0 个答案:

没有答案