Windows 10 Batch file works when manually executed but only partially works when windows 10 task scheduler executes it.

  • Thread starter Thread starter Only half clueless
  • Start date Start date
O

Only half clueless

[COLOR=rgba(0, 91, 106, 1)]As my title states my batch file works as intended when I execute it but if I run it through task scheduler in windows 10 it only runs part of the batch file. None of the copy functions of my batch run and I just end up with an empty zip file. This issue only happens on windows 10 I have verified it on multiple systems. This started sometime in the past two weeks from what I can tell. Can any one advise on this? Here is a copy of the batch file I am running [/COLOR]


[COLOR=rgba(0, 0, 0, 1)]d\ cd OnPointFiles Robocopy "Z:\BOOutbox" C:\OnPointFiles\Holding PJR*.xml /MAXAGE:8 7za a -tzip today.zip C:\OnPointFiles\Holding\*.xml COPY today.zip %time:~0,2%%time:~3,2%%time:~6,2%_%date:~-10,2%%date:~-7,2%%date:~-4,4%.zip del C:\OnPointFiles\Holding\*.xml del C:\OnPointFiles\today.zip SET AppExePath="%ProgramFiles(x86)%\Insight Retail Software\IConnect" IF NOT EXIST %AppExePath% SET AppExePath="%ProgramFiles%\Insight Retail Software\IConnect" start /b "" %AppExePath%\agent.exe publish[/COLOR]

Continue reading...
 
Back
Top