Windows 10: bat job started by Task Scheduler does not pause

Discus and support bat job started by Task Scheduler does not pause in Windows 10 Support to solve the problem; Old professor, Your test file runs correctly & pauses as intended when run from my [Ver 1703] Task scheduler without any special syntax being... Discussion in 'Windows 10 Support' started by Old Professor, Jun 5, 2017.

  1. Try3 Win User

    bat job started by Task Scheduler does not pause


    Old professor,

    Your test file runs correctly & pauses as intended when run from my [Ver 1703] Task scheduler without any special syntax being necessary.

    The discussion about Powershell is not relevant to your problem. Somebody else mentioned it and then the others thought that you had said that it was running in Powershell.

    If you simplified your real batch file for ease of explanation in this forum then might it be that some error is occurring and that it is crashing before reaching the pause line?. Are you running the real batch using the same user account you are testing it in?

    Does your batch file appear correctly if you open it in Notepad?time /T > c:\bat\test.log
    echo "--------------- starting test" >> c:\bat\test.log
    echo "-------------- finished test" >> c:\bat\test.log
    time /T >> c:\bat\test.log
    pause
    Whatever your problem is, it has nothing to do with Powershell.

    Denis
     
  2. Kari Win User

    I mentioned this in my last post, also sceptical about a batch "running in PowerShell":

    However, you are only half right right: OP mentioned it by himself, although first after it was suggested:

     
Thema:

bat job started by Task Scheduler does not pause

Loading...
  1. bat job started by Task Scheduler does not pause - Similar Threads - bat job started

  2. Task scheduler is not running jobs properly

    in Windows 10 Gaming
    Task scheduler is not running jobs properly: I had set up multiple jobs in Task Scheduler which runs for every 15min time interval each and 4 jobs with difference of 2-3 min each one after one which took 15min- 2hr time to complete depending on jobbut it goes in running status for infinite times and could not end jobs...
  3. Task scheduler is not running jobs properly

    in Windows 10 Software and Apps
    Task scheduler is not running jobs properly: I had set up multiple jobs in Task Scheduler which runs for every 15min time interval each and 4 jobs with difference of 2-3 min each one after one which took 15min- 2hr time to complete depending on jobbut it goes in running status for infinite times and could not end jobs...
  4. Task scheduler is not running jobs properly

    in Windows 10 BSOD Crashes and Debugging
    Task scheduler is not running jobs properly: I had set up multiple jobs in Task Scheduler which runs for every 15min time interval each and 4 jobs with difference of 2-3 min each one after one which took 15min- 2hr time to complete depending on jobbut it goes in running status for infinite times and could not end jobs...
  5. Task Scheduler is not starting

    in Windows 10 BSOD Crashes and Debugging
    Task Scheduler is not starting: Whenever I try to start Task Scheduler, it always brings me to an error. It says, "The Task Scheduler service on Local Computer started and then stopped. Some services stop automatically if they are not in us by other services or programs. I need to start this, so I can...
  6. Scheduled Task Won't Launch Program with .bat File

    in Windows 10 Customization
    Scheduled Task Won't Launch Program with .bat File: I wrote a couple simple bat files to both shut down and launch Adobe Media Encoder on a Windows 10 machine. When I double click on them, both launch and execute flawlessly. However when I schedule a task and click to run them from the scheduled task, the status just shows...
  7. Start VM via bat file in Windows Task Scheduler

    in Windows 10 Virtualization
    Start VM via bat file in Windows Task Scheduler: I'm attempting to start a VM from a bat file with Windows 10 Task Scheduler. The bat by itself and the script via CMD execute correctly, though I cannot get it to run as a bat in Task Scheduler. I've tried different configurations, directly from a CMD, etc. Interesting...
  8. Parallel batch jobs in one scheduled task

    in Windows 10 Support
    Parallel batch jobs in one scheduled task: Parallel batch jobs in one scheduled task hi, This should be an easy answer. I want to create one scheduled task, it will be called "CLEAR_PHOTOSBYDATE", see attached pic or (approximate example, not literal job...yet)...
  9. Task Scheduler and Bat File Problem

    in Windows 10 Support
    Task Scheduler and Bat File Problem: Hi, Not sure which forum to post this in, but hopefully someone has some insight and can help me with this. I have a simple .bat file that stops my media server, creates an archive of a folder (for backup purposes), and then starts the media server again. It works...
  10. Task Scheduler Will Not Start

    in Windows 10 Support
    Task Scheduler Will Not Start: Hey everyone, Have an issue with task scheduler not stating which is causing issues with say Nvidia Geforce Experience not starting as it requires it to update. When I try to start it from services I get that error. [img] When I try to launch the task scheduler...