batch file runs fine manually, but line that launches exe fails when batch run in task scheduler





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







2















I have a batch file (below) that works perfectly when run, however, when I set up the bat file in the task scheduler it ain't working right. The task scheduler does indeed run the task successfully, so I'm assuming it has to do with permissions for the Administrator regarding the .exe file. I already made sure the admin has permission in the local security options to "logon as a batch job" and I made sure the admin has full control of the entire folder that the .exe is contained in. When I test the batch file manually and it works, I am logged in as the admin.



EDIT: Summary of things asked and answered in comments:




  1. M: is a networked drive. It is physically located on this same server, but per requirements of the program, the networked drive letter must be used.

  2. moved bat file to C: in the theory that having it on the desktop might be an issue: no change.

  3. When the exe is run, a gui is supposed to launch. This happens when the bat is run manually, but the gui fails to launch when task manager is used. The remainder of the bat runs as intended. Per software developer, gui should be able to run even from task manager and they have not seen this behavior before.


EDIT 2: So I've confirmed that the problem is that the GUI DOES need to launch, contrary to expectations. I can get the task to work by changing to Run only when user is logged on, which causes the UI to appear. However, since this is a server and the task runs in the wee hours of the morning, there usually is not a user logged in. Is there a way to cause the user to log on and off at a specific time? Or another solution other than always leaving a user logged in?



The batch file (REVISED):



netsh interface set interface "Local Area Connection 2" DISABLED
iisreset /stop
timeout /t 120
iisreset /start
netsh interface set interface "Local Area Connection 2" ENABLED
start /d "M:CBSW" optimize.exe T


The exported XML from the task in task scheduler (revise:



<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2012-01-10T09:42:01.9781872</Date>
<Author>DOMAINAdministrator</Author>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2012-01-10T02:00:00</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByWeek>
<DaysOfWeek>
<Monday />
<Thursday />
</DaysOfWeek>
<WeeksInterval>1</WeeksInterval>
</ScheduleByWeek>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>DOMAINAdministrator</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<IdleSettings>
<Duration>PT10M</Duration>
<WaitTimeout>PT1H</WaitTimeout>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>P3D</ExecutionTimeLimit>
<Priority>7</Priority>
<RestartOnFailure>
<Interval>PT15M</Interval>
<Count>3</Count>
</RestartOnFailure>
</Settings>
<Actions Context="Author">
<Exec>
<Command>E:IISRESET+Optimize.bat</Command>
<WorkingDirectory>E:DataOptimize</WorkingDirectory>
</Exec>
</Actions>
</Task>









share|improve this question

























  • Is M: a mapped network drive, or a actual drive local to the system the script is run on?

    – Ƭᴇcʜιᴇ007
    Feb 20 '15 at 18:04













  • it's the actual drive local to the system the script is run on.

    – tlynnec
    Feb 20 '15 at 18:06













  • Which account are you using to run the task? you user account or ???.

    – Ƭᴇcʜιᴇ007
    Feb 20 '15 at 18:09













  • I'm not sure what you mean by "the local user" exactly -- the account you're currently logged in as? When you setup the task you have to assign a user to it, just go look a the task's General tab to see which user is assigned to run the task...

    – Ƭᴇcʜιᴇ007
    Feb 20 '15 at 18:14











  • OK, you're right. Don't know where my brain was. Task is scheduled to run under the network Administrator account, which is the same one I use to test the batch file manually. I'm editing my question to reflect this as well.

    – tlynnec
    Feb 20 '15 at 18:16


















2















I have a batch file (below) that works perfectly when run, however, when I set up the bat file in the task scheduler it ain't working right. The task scheduler does indeed run the task successfully, so I'm assuming it has to do with permissions for the Administrator regarding the .exe file. I already made sure the admin has permission in the local security options to "logon as a batch job" and I made sure the admin has full control of the entire folder that the .exe is contained in. When I test the batch file manually and it works, I am logged in as the admin.



EDIT: Summary of things asked and answered in comments:




  1. M: is a networked drive. It is physically located on this same server, but per requirements of the program, the networked drive letter must be used.

  2. moved bat file to C: in the theory that having it on the desktop might be an issue: no change.

  3. When the exe is run, a gui is supposed to launch. This happens when the bat is run manually, but the gui fails to launch when task manager is used. The remainder of the bat runs as intended. Per software developer, gui should be able to run even from task manager and they have not seen this behavior before.


EDIT 2: So I've confirmed that the problem is that the GUI DOES need to launch, contrary to expectations. I can get the task to work by changing to Run only when user is logged on, which causes the UI to appear. However, since this is a server and the task runs in the wee hours of the morning, there usually is not a user logged in. Is there a way to cause the user to log on and off at a specific time? Or another solution other than always leaving a user logged in?



The batch file (REVISED):



netsh interface set interface "Local Area Connection 2" DISABLED
iisreset /stop
timeout /t 120
iisreset /start
netsh interface set interface "Local Area Connection 2" ENABLED
start /d "M:CBSW" optimize.exe T


The exported XML from the task in task scheduler (revise:



<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2012-01-10T09:42:01.9781872</Date>
<Author>DOMAINAdministrator</Author>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2012-01-10T02:00:00</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByWeek>
<DaysOfWeek>
<Monday />
<Thursday />
</DaysOfWeek>
<WeeksInterval>1</WeeksInterval>
</ScheduleByWeek>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>DOMAINAdministrator</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<IdleSettings>
<Duration>PT10M</Duration>
<WaitTimeout>PT1H</WaitTimeout>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>P3D</ExecutionTimeLimit>
<Priority>7</Priority>
<RestartOnFailure>
<Interval>PT15M</Interval>
<Count>3</Count>
</RestartOnFailure>
</Settings>
<Actions Context="Author">
<Exec>
<Command>E:IISRESET+Optimize.bat</Command>
<WorkingDirectory>E:DataOptimize</WorkingDirectory>
</Exec>
</Actions>
</Task>









share|improve this question

























  • Is M: a mapped network drive, or a actual drive local to the system the script is run on?

    – Ƭᴇcʜιᴇ007
    Feb 20 '15 at 18:04













  • it's the actual drive local to the system the script is run on.

    – tlynnec
    Feb 20 '15 at 18:06













  • Which account are you using to run the task? you user account or ???.

    – Ƭᴇcʜιᴇ007
    Feb 20 '15 at 18:09













  • I'm not sure what you mean by "the local user" exactly -- the account you're currently logged in as? When you setup the task you have to assign a user to it, just go look a the task's General tab to see which user is assigned to run the task...

    – Ƭᴇcʜιᴇ007
    Feb 20 '15 at 18:14











  • OK, you're right. Don't know where my brain was. Task is scheduled to run under the network Administrator account, which is the same one I use to test the batch file manually. I'm editing my question to reflect this as well.

    – tlynnec
    Feb 20 '15 at 18:16














2












2








2








I have a batch file (below) that works perfectly when run, however, when I set up the bat file in the task scheduler it ain't working right. The task scheduler does indeed run the task successfully, so I'm assuming it has to do with permissions for the Administrator regarding the .exe file. I already made sure the admin has permission in the local security options to "logon as a batch job" and I made sure the admin has full control of the entire folder that the .exe is contained in. When I test the batch file manually and it works, I am logged in as the admin.



EDIT: Summary of things asked and answered in comments:




  1. M: is a networked drive. It is physically located on this same server, but per requirements of the program, the networked drive letter must be used.

  2. moved bat file to C: in the theory that having it on the desktop might be an issue: no change.

  3. When the exe is run, a gui is supposed to launch. This happens when the bat is run manually, but the gui fails to launch when task manager is used. The remainder of the bat runs as intended. Per software developer, gui should be able to run even from task manager and they have not seen this behavior before.


EDIT 2: So I've confirmed that the problem is that the GUI DOES need to launch, contrary to expectations. I can get the task to work by changing to Run only when user is logged on, which causes the UI to appear. However, since this is a server and the task runs in the wee hours of the morning, there usually is not a user logged in. Is there a way to cause the user to log on and off at a specific time? Or another solution other than always leaving a user logged in?



The batch file (REVISED):



netsh interface set interface "Local Area Connection 2" DISABLED
iisreset /stop
timeout /t 120
iisreset /start
netsh interface set interface "Local Area Connection 2" ENABLED
start /d "M:CBSW" optimize.exe T


The exported XML from the task in task scheduler (revise:



<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2012-01-10T09:42:01.9781872</Date>
<Author>DOMAINAdministrator</Author>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2012-01-10T02:00:00</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByWeek>
<DaysOfWeek>
<Monday />
<Thursday />
</DaysOfWeek>
<WeeksInterval>1</WeeksInterval>
</ScheduleByWeek>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>DOMAINAdministrator</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<IdleSettings>
<Duration>PT10M</Duration>
<WaitTimeout>PT1H</WaitTimeout>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>P3D</ExecutionTimeLimit>
<Priority>7</Priority>
<RestartOnFailure>
<Interval>PT15M</Interval>
<Count>3</Count>
</RestartOnFailure>
</Settings>
<Actions Context="Author">
<Exec>
<Command>E:IISRESET+Optimize.bat</Command>
<WorkingDirectory>E:DataOptimize</WorkingDirectory>
</Exec>
</Actions>
</Task>









share|improve this question
















I have a batch file (below) that works perfectly when run, however, when I set up the bat file in the task scheduler it ain't working right. The task scheduler does indeed run the task successfully, so I'm assuming it has to do with permissions for the Administrator regarding the .exe file. I already made sure the admin has permission in the local security options to "logon as a batch job" and I made sure the admin has full control of the entire folder that the .exe is contained in. When I test the batch file manually and it works, I am logged in as the admin.



EDIT: Summary of things asked and answered in comments:




  1. M: is a networked drive. It is physically located on this same server, but per requirements of the program, the networked drive letter must be used.

  2. moved bat file to C: in the theory that having it on the desktop might be an issue: no change.

  3. When the exe is run, a gui is supposed to launch. This happens when the bat is run manually, but the gui fails to launch when task manager is used. The remainder of the bat runs as intended. Per software developer, gui should be able to run even from task manager and they have not seen this behavior before.


EDIT 2: So I've confirmed that the problem is that the GUI DOES need to launch, contrary to expectations. I can get the task to work by changing to Run only when user is logged on, which causes the UI to appear. However, since this is a server and the task runs in the wee hours of the morning, there usually is not a user logged in. Is there a way to cause the user to log on and off at a specific time? Or another solution other than always leaving a user logged in?



The batch file (REVISED):



netsh interface set interface "Local Area Connection 2" DISABLED
iisreset /stop
timeout /t 120
iisreset /start
netsh interface set interface "Local Area Connection 2" ENABLED
start /d "M:CBSW" optimize.exe T


The exported XML from the task in task scheduler (revise:



<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2012-01-10T09:42:01.9781872</Date>
<Author>DOMAINAdministrator</Author>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2012-01-10T02:00:00</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByWeek>
<DaysOfWeek>
<Monday />
<Thursday />
</DaysOfWeek>
<WeeksInterval>1</WeeksInterval>
</ScheduleByWeek>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>DOMAINAdministrator</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>HighestAvailable</RunLevel>
</Principal>
</Principals>
<Settings>
<IdleSettings>
<Duration>PT10M</Duration>
<WaitTimeout>PT1H</WaitTimeout>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>false</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>false</WakeToRun>
<ExecutionTimeLimit>P3D</ExecutionTimeLimit>
<Priority>7</Priority>
<RestartOnFailure>
<Interval>PT15M</Interval>
<Count>3</Count>
</RestartOnFailure>
</Settings>
<Actions Context="Author">
<Exec>
<Command>E:IISRESET+Optimize.bat</Command>
<WorkingDirectory>E:DataOptimize</WorkingDirectory>
</Exec>
</Actions>
</Task>






windows batch windows-server-2008-r2 scheduled-tasks






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 24 '15 at 16:22







tlynnec

















asked Feb 20 '15 at 18:00









tlynnectlynnec

113




113













  • Is M: a mapped network drive, or a actual drive local to the system the script is run on?

    – Ƭᴇcʜιᴇ007
    Feb 20 '15 at 18:04













  • it's the actual drive local to the system the script is run on.

    – tlynnec
    Feb 20 '15 at 18:06













  • Which account are you using to run the task? you user account or ???.

    – Ƭᴇcʜιᴇ007
    Feb 20 '15 at 18:09













  • I'm not sure what you mean by "the local user" exactly -- the account you're currently logged in as? When you setup the task you have to assign a user to it, just go look a the task's General tab to see which user is assigned to run the task...

    – Ƭᴇcʜιᴇ007
    Feb 20 '15 at 18:14











  • OK, you're right. Don't know where my brain was. Task is scheduled to run under the network Administrator account, which is the same one I use to test the batch file manually. I'm editing my question to reflect this as well.

    – tlynnec
    Feb 20 '15 at 18:16



















  • Is M: a mapped network drive, or a actual drive local to the system the script is run on?

    – Ƭᴇcʜιᴇ007
    Feb 20 '15 at 18:04













  • it's the actual drive local to the system the script is run on.

    – tlynnec
    Feb 20 '15 at 18:06













  • Which account are you using to run the task? you user account or ???.

    – Ƭᴇcʜιᴇ007
    Feb 20 '15 at 18:09













  • I'm not sure what you mean by "the local user" exactly -- the account you're currently logged in as? When you setup the task you have to assign a user to it, just go look a the task's General tab to see which user is assigned to run the task...

    – Ƭᴇcʜιᴇ007
    Feb 20 '15 at 18:14











  • OK, you're right. Don't know where my brain was. Task is scheduled to run under the network Administrator account, which is the same one I use to test the batch file manually. I'm editing my question to reflect this as well.

    – tlynnec
    Feb 20 '15 at 18:16

















Is M: a mapped network drive, or a actual drive local to the system the script is run on?

– Ƭᴇcʜιᴇ007
Feb 20 '15 at 18:04







Is M: a mapped network drive, or a actual drive local to the system the script is run on?

– Ƭᴇcʜιᴇ007
Feb 20 '15 at 18:04















it's the actual drive local to the system the script is run on.

– tlynnec
Feb 20 '15 at 18:06







it's the actual drive local to the system the script is run on.

– tlynnec
Feb 20 '15 at 18:06















Which account are you using to run the task? you user account or ???.

– Ƭᴇcʜιᴇ007
Feb 20 '15 at 18:09







Which account are you using to run the task? you user account or ???.

– Ƭᴇcʜιᴇ007
Feb 20 '15 at 18:09















I'm not sure what you mean by "the local user" exactly -- the account you're currently logged in as? When you setup the task you have to assign a user to it, just go look a the task's General tab to see which user is assigned to run the task...

– Ƭᴇcʜιᴇ007
Feb 20 '15 at 18:14





I'm not sure what you mean by "the local user" exactly -- the account you're currently logged in as? When you setup the task you have to assign a user to it, just go look a the task's General tab to see which user is assigned to run the task...

– Ƭᴇcʜιᴇ007
Feb 20 '15 at 18:14













OK, you're right. Don't know where my brain was. Task is scheduled to run under the network Administrator account, which is the same one I use to test the batch file manually. I'm editing my question to reflect this as well.

– tlynnec
Feb 20 '15 at 18:16





OK, you're right. Don't know where my brain was. Task is scheduled to run under the network Administrator account, which is the same one I use to test the batch file manually. I'm editing my question to reflect this as well.

– tlynnec
Feb 20 '15 at 18:16










1 Answer
1






active

oldest

votes


















0














A GUI only app needs a desktop and you only get one of those when you're a logged in user.



But you may find some additional resources here:
https://stackoverflow.com/questions/53232/how-can-i-run-a-windows-gui-application-on-as-a-service






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f880473%2fbatch-file-runs-fine-manually-but-line-that-launches-exe-fails-when-batch-run-i%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    A GUI only app needs a desktop and you only get one of those when you're a logged in user.



    But you may find some additional resources here:
    https://stackoverflow.com/questions/53232/how-can-i-run-a-windows-gui-application-on-as-a-service






    share|improve this answer




























      0














      A GUI only app needs a desktop and you only get one of those when you're a logged in user.



      But you may find some additional resources here:
      https://stackoverflow.com/questions/53232/how-can-i-run-a-windows-gui-application-on-as-a-service






      share|improve this answer


























        0












        0








        0







        A GUI only app needs a desktop and you only get one of those when you're a logged in user.



        But you may find some additional resources here:
        https://stackoverflow.com/questions/53232/how-can-i-run-a-windows-gui-application-on-as-a-service






        share|improve this answer













        A GUI only app needs a desktop and you only get one of those when you're a logged in user.



        But you may find some additional resources here:
        https://stackoverflow.com/questions/53232/how-can-i-run-a-windows-gui-application-on-as-a-service







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 26 '15 at 20:34







        user254395





































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f880473%2fbatch-file-runs-fine-manually-but-line-that-launches-exe-fails-when-batch-run-i%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Probability when a professor distributes a quiz and homework assignment to a class of n students.

            Aardman Animations

            Are they similar matrix