Windows 10: Batch file works when manually executed but only partially works when windows 10 task...

Discus and support Batch file works when manually executed but only partially works when windows 10 task... in Windows 10 Ask Insider to solve the problem; As my title states my batch file works as intended when I execute it manually but if I run it through task scheduler in windows 10 it only runs part of... Discussion in 'Windows 10 Ask Insider' started by /u/CarbonReflections, Mar 24, 2021.

  1. Batch file works when manually executed but only partially works when windows 10 task...


    As my title states my batch file works as intended when I execute it manually 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. From what I can tell this started a few weeks ago. Can any one advise on this?



    d\ cd OnPointFiles Robocopy "C:\Program Files (x86)\CStorePro\CSPPOS\Archive" 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
    submitted by /u/CarbonReflections
    [link] [comments]

    :)
     
    /u/CarbonReflections, Mar 24, 2021
    #1
Thema:

Batch file works when manually executed but only partially works when windows 10 task...

Loading...
  1. Batch file works when manually executed but only partially works when windows 10 task... - Similar Threads - Batch file works

  2. Task Scheduler is failing to execute Batch File when set to "logged in or not". This was...

    in Windows 10 BSOD Crashes and Debugging
    Task Scheduler is failing to execute Batch File when set to "logged in or not". This was...: I have a batch script that runs robocopy on a folder to archive files to a network drive, on a Windows 10 Pro machine; Note: These machines are on a domain, but have been disconnected from the domain at a client site for long time. This has not been a problem so far, but...
  3. Task Scheduler is failing to execute Batch File when set to "logged in or not". This was...

    in Windows 10 Gaming
    Task Scheduler is failing to execute Batch File when set to "logged in or not". This was...: I have a batch script that runs robocopy on a folder to archive files to a network drive, on a Windows 10 Pro machine; Note: These machines are on a domain, but have been disconnected from the domain at a client site for long time. This has not been a problem so far, but...
  4. Task Scheduler is failing to execute Batch File when set to "logged in or not". This was...

    in Windows 10 Software and Apps
    Task Scheduler is failing to execute Batch File when set to "logged in or not". This was...: I have a batch script that runs robocopy on a folder to archive files to a network drive, on a Windows 10 Pro machine; Note: These machines are on a domain, but have been disconnected from the domain at a client site for long time. This has not been a problem so far, but...
  5. Powershell Script .ps1 file Does Not Work When Executed Through Task Scheduler

    in Windows 10 Network and Sharing
    Powershell Script .ps1 file Does Not Work When Executed Through Task Scheduler: Hi there, I have created a .ps1 file which contains a RoboCopy script to copy files from a folder on my C: drive which contains a database, and paste them into a folder on my OneDrive so that they can be safely backed up to the cloud and have a history of changes.The code...
  6. Powershell Script .ps1 file Does Not Work When Executed Through Task Scheduler

    in Windows 10 Gaming
    Powershell Script .ps1 file Does Not Work When Executed Through Task Scheduler: Hi there, I have created a .ps1 file which contains a RoboCopy script to copy files from a folder on my C: drive which contains a database, and paste them into a folder on my OneDrive so that they can be safely backed up to the cloud and have a history of changes.The code...
  7. Powershell Script .ps1 file Does Not Work When Executed Through Task Scheduler

    in Windows 10 Software and Apps
    Powershell Script .ps1 file Does Not Work When Executed Through Task Scheduler: Hi there, I have created a .ps1 file which contains a RoboCopy script to copy files from a folder on my C: drive which contains a database, and paste them into a folder on my OneDrive so that they can be safely backed up to the cloud and have a history of changes.The code...
  8. Batch file works when manually executed but only partially works when windows 10 task...

    in Windows 10 Network and Sharing
    Batch file works when manually executed but only partially works when windows 10 task...: 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...
  9. Task Scheduler works only when Plugged-In

    in Windows 10 Software and Apps
    Task Scheduler works only when Plugged-In: I've set up two tasks on Windows Task Scheduler, one is triggered when the device is locked and the other is triggered when the device is unlocked. But this works only when I connect my Laptop to a charger, otherwise, it doesn't work at all. I have both the tasks running on...
  10. Batch file not working

    in Windows 10 Network and Sharing
    Batch file not working: Hello, Iam making autorun project that if I plug Flash disc in my pc it autoruns batch file with my "assistant" what says Hi, what do you want? But here are things that just doesn´t work: 1.If I plug in the Flash disc autorun.inf dont do anything. 2.If I manage batch file...