|
请教因何有时会找不到文件的?
我的是Windows 7 Pro x64, 我用OneShipping.bat, 里面内容是:
if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\Move File = Time Stamp.exe" P:\Temp\*.html P:\
Taskkill /f /im "Move File = Time Stamp.exe"
if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\Goto Window Control.exe" "The Bat!" "K"
if not exist "P:\Wait.html" Taskkill /f /im "Goto Popup Click Botton.exe"
if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\Goto Popup Click Botton.exe" "Browse For Folder" "OK"
if not exist "P:\Wait.html" Taskkill /f /im "Goto Popup Click Botton.exe"
if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\Goto Popup Click Botton.exe" "Extract Attachments" "&Increment the file name"
if not exist "P:\Wait.html" Taskkill /f /im "Goto Popup Click Botton.exe"
if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\Goto Popup Click Botton.exe" "Extract Attachments" "&OK"
if not exist "P:\Wait.html" Taskkill /f /im "Goto Window Control.exe"
if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\Goto Window Control.exe" "The Bat!" "X"
if not exist "P:\Wait.html" Del /f /s /q P:\"Temp\*.xls"
if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\TheBat Save Message.html = OneShipping.bat.exe"
if not exist "P:\Wait.html" Start /min D:\"Pro-InstallED\My = Profit\Invoice To My-Gold.bat" ^& exit
if exist "P:\Wait.html" Start /B P:\Temp\Invoice=DONE.xls
if exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\Goto Window Control.exe" "Microsoft Excel - Invoice=DONE.xls" "L"
if not exist "P:\Wait.html" Copy P:\Temp\Message.html P:\Wait.html /Y
我每天都会手动的运行这OneShipping.bat七十至120次, 但每天都会有1-8次出现如下, 说找不到Move File = Time Stamp.exe, Goto Popup Click Botton.exe, Goto Window Control.exe这三个文件, 但这三个文件一直都在:
D:\Pro-InstallED\(Optimization)>if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\Move File = Time Stamp.exe" P:\Temp\*.html P:\
Move File Program. Build Time: 3/16/2016 5:52:54 PM.
ERROR: No Source File found
Usage: MoveFile <Source File/Folder> <Destination Folder>
D:\Pro-InstallED\(Optimization)>Taskkill /f /im "Move File = Time Stamp.exe"
ERROR: The process "Move File = Time Stamp.exe" not found.
D:\Pro-InstallED\(Optimization)>if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\Goto Window Control.exe" "The Bat!" "K"
Window Control Program. Build Time: 1/29/2016 11:18:22 PM
D:\Pro-InstallED\(Optimization)>if not exist "P:\Wait.html" Taskkill /f /im "Goto Popup Click Botton.exe"
ERROR: The process "Goto Popup Click Botton.exe" not found.
D:\Pro-InstallED\(Optimization)>if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\Goto Popup Click Botton.exe" "Browse For Folder" "OK"
Window Button Click Program. Build time: 1/31/2016 6:03:19 PM
ERROR: Could not find the window.
Usage: WindowButtonClick <Window Name> <Button Name>
D:\Pro-InstallED\(Optimization)>if not exist "P:\Wait.html" Taskkill /f /im "Goto Popup Click Botton.exe"
ERROR: The process "Goto Popup Click Botton.exe" not found.
D:\Pro-InstallED\(Optimization)>if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\Goto Popup Click Botton.exe" "Extract Attachments" "&Increment the file name"
Window Button Click Program. Build time: 1/31/2016 6:03:19 PM
ERROR: Could not find the window.
Usage: WindowButtonClick <Window Name> <Button Name>
D:\Pro-InstallED\(Optimization)>if not exist "P:\Wait.html" Taskkill /f /im "Goto Popup Click Botton.exe"
ERROR: The process "Goto Popup Click Botton.exe" not found.
D:\Pro-InstallED\(Optimization)>if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\Goto Popup Click Botton.exe" "Extract Attachments" "&OK"
Window Button Click Program. Build time: 1/31/2016 6:03:19 PM
ERROR: Could not find the window.
Usage: WindowButtonClick <Window Name> <Button Name>
D:\Pro-InstallED\(Optimization)>if not exist "P:\Wait.html" Taskkill /f /im "Goto Window Control.exe"
ERROR: The process "Goto Window Control.exe" not found.
D:\Pro-InstallED\(Optimization)>if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\Goto Window Control.exe" "The Bat!" "X"
Window Control Program. Build Time: 1/29/2016 11:18:22 PM
D:\Pro-InstallED\(Optimization)>if not exist "P:\Wait.html" Del /f /s /q P:\"Temp\*.xls"
Could Not Find P:\Temp\*.xls
D:\Pro-InstallED\(Optimization)>if not exist "P:\Wait.html" D:\"Pro-InstallED\My = Profit\TheBat Save Message.html = OneShipping.bat.exe"
谢谢帮忙 |
|