Windows 10: Scheduled Task Won't Launch Program with .bat File

Discus and support Scheduled Task Won't Launch Program with .bat File in Windows 10 Customization to solve the problem; 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... Discussion in 'Windows 10 Customization' started by floundo, Sep 5, 2018.

  1. floundo Win User

    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 as "Running" but nothing happens. When I go into processes I can see Adobe Media Encoder, but the initial launch screen never comes up much less the program opens. I've also noticed that when I launch from the bat file itself, Adobe ME shows up under APPS in task manager, but when I run from the scheduled task it shows up in background processes along with two other Adobe processes that when launched from the bat show up under Adobe Media Encoder CC2018:




    I've tried the options I've seen on several forums such as having the task run cmd prompt with the argument being the bat and run from the containing folder. I've enabled full permissions on the folder with the bat for all users. It's run under the local admin account to that machine, run with highest privileges. Any other ideas?

    :)
     
    floundo, Sep 5, 2018
    #1

  2. 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 perfectly if I double click the .bat file, or if I run the bat file from the command prompt.

    When I run it from Windows Task Scheduler, however, it does not work properly. The media server does not shut down. If I look in the task manager, though, I see that the archiving program has started. It is difficult to see what is happening because, unlinke when running this in CMD, when it is run from the task scheduler it produces no output to see if there is an error message.

    Why would it run differently from the task scheduler than when I simply double click the .bat file? I have chosen to run it from the same user account, and also selected "run with highest privileges."

    Here is the bat file. The first line stops the media server. The second line runs the archiving process (using 7zip). The third line starts the media server again. Again, it works perfectly if I simply double click the bat file.

    Code:
    Code:
    @echo off  taskkill /im "plex media server.exe"  7za u C:\plexbackup.7z C:\plexdata -mx0 -up1q0r2x1y2z1w2  "C:\Program Files (x86)\Plex\Plex Media Server\plex media server.exe"
    Anyone have insight?

    Thanks.
     
    SeanFilidis, Sep 5, 2018
    #2
  3. DavidE Win User
    Task Scheduler and Bat File Problem


    In Task Scheduler Enable All Tasks History
    Run the scheduled task
    Refresh, and look at the History tab for that task.
    Look at each entry in history and see if you can find an error message/code for any step in the task run.
     
    DavidE, Sep 5, 2018
    #3
  4. newtekie1 Win User

    Scheduled Task Won't Launch Program with .bat File

    Schedules task has slow network transfers?

    I have a bat file that I use to backup all my data from one computer to another. They are on a gigabit network.

    When I run the bat file normally(by double clicking it), it will transfer fast. Network untilization is usually in the 40-50% range.


    Now, if I schedule a task to run the bat file, it transfers extremely slow. Network utilization is usually in the 2-3% range.

    It takes multiple hours to finish the backup if it runs as a task and there is any new data.

    Are scheduled tasks limitted in some why that might be causing this?

    This is Vista x64.
     
    newtekie1, Sep 5, 2018
    #4
Thema:

Scheduled Task Won't Launch Program with .bat File

Loading...
  1. Scheduled Task Won't Launch Program with .bat File - Similar Threads - Scheduled Task Won't

  2. Unable to launch .bat file

    in Windows 10 BSOD Crashes and Debugging
    Unable to launch .bat file: So as the title suggestsHere is the video of my errorVideo https://answers.microsoft.com/en-us/windows/forum/all/unable-to-launch-bat-file/2c3d04bd-a739-4cab-b1dd-1353103485ba
  3. Task scheduled in Task Scheduler won't run from shortcut

    in Windows 10 BSOD Crashes and Debugging
    Task scheduled in Task Scheduler won't run from shortcut: I have a task set up in Task Scheduler on Win 10 Pro 64-bit and it runs correctly when run from Task Scheduler. I cannot get the task to run from a shortcut. I do not know whether this is relevant, but in the Settings window of Task Scheduler it shows the checkbox next to...
  4. Task scheduler won't start

    in Windows 10 Software and Apps
    Task scheduler won't start: I have the problem whare the task scheduler in services is set to automatice but fails to start and log in is greyed out. I have tried many solutions and none have worked. However I did find a solution and it was down to my own error. I used a program called DISMPP-10 and...
  5. 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...
  6. 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...
  7. bat job started by Task Scheduler does not pause

    in Windows 10 Support
    bat job started by Task Scheduler does not pause: In the last week or so all bat jobs started by Task Scheduler have not paused. Previously, I would find a black CMD window open, waiting for me to hit return to close the window. The following test indicates that the bat job ran, but it did not pause. TEST.BAT time /T >...
  8. Task Scheduler not running programs...

    in Windows 10 Support
    Task Scheduler not running programs...: Hello Guys, I have a Windows 10 Laptop. Tried using Task Scheduler to automatically run Good Sync program on a predefined schedule. However, it fails to run the program. My user account has administrative priviledges. Thanks for your replies. 37970
  9. Task Scheduler - launch program hidden in system tray

    in Windows 10 Support
    Task Scheduler - launch program hidden in system tray: I am using a program called ThrottleStop to undervolt my laptop. I have configured it via Task Scheduler to launch minimized at the log on of any user. Is there any way to launch it with the icon hidden in the system tray, similar to how Windows Defender works? 96563
  10. Cannot run BAT file with Task Scheduler "Access Denied".

    in Windows 10 Support
    Cannot run BAT file with Task Scheduler "Access Denied".: Hi all. I am learning some basic batch scripting and I've created a file with the following code: [img] All this does is move various file types to various folders to clean up my desktop. If I click on the .bat file directly it works great. But if I try to run it...

Users found this page by searching for:

  1. scheduled task wont start program