Windows Task Scheduler - Task ending





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







0















I'm trying to schedule a task in windows task scheduler, that will run on every user logon, as the user creating it. The task needs to run an .exe, and then stop. The thing is, it keeps running for as long as the .exe runs. So user logs on, the task fires up, the .exe starts running, but the task itself never stop and it's status remains "running" Btw, the .exe needs to run all the time.



If for example i set the task at a specific time, it runs at that specific time, runs the .exe, and the task ends, going back to a ready status which is what i need, in a way.



Is there a way to make a task start on a user logon, start an exe, and then stop that same task, until it's triggered again (on another logon). If i stop the task manually, it also stops the running .exe, which it shouldn't.










share|improve this question























  • What is your task action? running desured .EXE? running some script? etc.? And why to stop the task is so critical?

    – Akina
    Mar 4 at 8:54











  • It needs to run an .EXE. I guess i could say it's not "critical", but i don't understand why would it run simultaneously with the .EXE - if one of them is stopped, they are both stopped. Plus if you consider that the .EXE needs to run 24/7, the task will too which is something i don't really like.

    – Filip5991
    Mar 4 at 8:59











  • The "task running" is the same as "executing task's action". Action is "running exe"? "exe is running" == "task is running". Create simple script (vbs or ever batch) which starts your exe and exits.

    – Akina
    Mar 4 at 9:34











  • That's an option yes, but the question is: Why if i schedule a task at some time (xx:xx) to run an .EXE it starts at xx:xx, runs the exe and the task finishes and goes to state ready, but when i do it on logon it keeps running as long as the exe is running...?(all the time, and if i stop it manually it stops the exe too)

    – Filip5991
    Mar 4 at 10:42











  • Welcome to Super User. What problem is being caused by the task running as long as the .EXE is executing?

    – Twisty Impersonator
    Mar 4 at 12:09


















0















I'm trying to schedule a task in windows task scheduler, that will run on every user logon, as the user creating it. The task needs to run an .exe, and then stop. The thing is, it keeps running for as long as the .exe runs. So user logs on, the task fires up, the .exe starts running, but the task itself never stop and it's status remains "running" Btw, the .exe needs to run all the time.



If for example i set the task at a specific time, it runs at that specific time, runs the .exe, and the task ends, going back to a ready status which is what i need, in a way.



Is there a way to make a task start on a user logon, start an exe, and then stop that same task, until it's triggered again (on another logon). If i stop the task manually, it also stops the running .exe, which it shouldn't.










share|improve this question























  • What is your task action? running desured .EXE? running some script? etc.? And why to stop the task is so critical?

    – Akina
    Mar 4 at 8:54











  • It needs to run an .EXE. I guess i could say it's not "critical", but i don't understand why would it run simultaneously with the .EXE - if one of them is stopped, they are both stopped. Plus if you consider that the .EXE needs to run 24/7, the task will too which is something i don't really like.

    – Filip5991
    Mar 4 at 8:59











  • The "task running" is the same as "executing task's action". Action is "running exe"? "exe is running" == "task is running". Create simple script (vbs or ever batch) which starts your exe and exits.

    – Akina
    Mar 4 at 9:34











  • That's an option yes, but the question is: Why if i schedule a task at some time (xx:xx) to run an .EXE it starts at xx:xx, runs the exe and the task finishes and goes to state ready, but when i do it on logon it keeps running as long as the exe is running...?(all the time, and if i stop it manually it stops the exe too)

    – Filip5991
    Mar 4 at 10:42











  • Welcome to Super User. What problem is being caused by the task running as long as the .EXE is executing?

    – Twisty Impersonator
    Mar 4 at 12:09














0












0








0


2






I'm trying to schedule a task in windows task scheduler, that will run on every user logon, as the user creating it. The task needs to run an .exe, and then stop. The thing is, it keeps running for as long as the .exe runs. So user logs on, the task fires up, the .exe starts running, but the task itself never stop and it's status remains "running" Btw, the .exe needs to run all the time.



If for example i set the task at a specific time, it runs at that specific time, runs the .exe, and the task ends, going back to a ready status which is what i need, in a way.



Is there a way to make a task start on a user logon, start an exe, and then stop that same task, until it's triggered again (on another logon). If i stop the task manually, it also stops the running .exe, which it shouldn't.










share|improve this question














I'm trying to schedule a task in windows task scheduler, that will run on every user logon, as the user creating it. The task needs to run an .exe, and then stop. The thing is, it keeps running for as long as the .exe runs. So user logs on, the task fires up, the .exe starts running, but the task itself never stop and it's status remains "running" Btw, the .exe needs to run all the time.



If for example i set the task at a specific time, it runs at that specific time, runs the .exe, and the task ends, going back to a ready status which is what i need, in a way.



Is there a way to make a task start on a user logon, start an exe, and then stop that same task, until it's triggered again (on another logon). If i stop the task manually, it also stops the running .exe, which it shouldn't.







scheduled-tasks windows-task-scheduler task-scheduler tasks scheduling






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 4 at 8:26









Filip5991Filip5991

1




1













  • What is your task action? running desured .EXE? running some script? etc.? And why to stop the task is so critical?

    – Akina
    Mar 4 at 8:54











  • It needs to run an .EXE. I guess i could say it's not "critical", but i don't understand why would it run simultaneously with the .EXE - if one of them is stopped, they are both stopped. Plus if you consider that the .EXE needs to run 24/7, the task will too which is something i don't really like.

    – Filip5991
    Mar 4 at 8:59











  • The "task running" is the same as "executing task's action". Action is "running exe"? "exe is running" == "task is running". Create simple script (vbs or ever batch) which starts your exe and exits.

    – Akina
    Mar 4 at 9:34











  • That's an option yes, but the question is: Why if i schedule a task at some time (xx:xx) to run an .EXE it starts at xx:xx, runs the exe and the task finishes and goes to state ready, but when i do it on logon it keeps running as long as the exe is running...?(all the time, and if i stop it manually it stops the exe too)

    – Filip5991
    Mar 4 at 10:42











  • Welcome to Super User. What problem is being caused by the task running as long as the .EXE is executing?

    – Twisty Impersonator
    Mar 4 at 12:09



















  • What is your task action? running desured .EXE? running some script? etc.? And why to stop the task is so critical?

    – Akina
    Mar 4 at 8:54











  • It needs to run an .EXE. I guess i could say it's not "critical", but i don't understand why would it run simultaneously with the .EXE - if one of them is stopped, they are both stopped. Plus if you consider that the .EXE needs to run 24/7, the task will too which is something i don't really like.

    – Filip5991
    Mar 4 at 8:59











  • The "task running" is the same as "executing task's action". Action is "running exe"? "exe is running" == "task is running". Create simple script (vbs or ever batch) which starts your exe and exits.

    – Akina
    Mar 4 at 9:34











  • That's an option yes, but the question is: Why if i schedule a task at some time (xx:xx) to run an .EXE it starts at xx:xx, runs the exe and the task finishes and goes to state ready, but when i do it on logon it keeps running as long as the exe is running...?(all the time, and if i stop it manually it stops the exe too)

    – Filip5991
    Mar 4 at 10:42











  • Welcome to Super User. What problem is being caused by the task running as long as the .EXE is executing?

    – Twisty Impersonator
    Mar 4 at 12:09

















What is your task action? running desured .EXE? running some script? etc.? And why to stop the task is so critical?

– Akina
Mar 4 at 8:54





What is your task action? running desured .EXE? running some script? etc.? And why to stop the task is so critical?

– Akina
Mar 4 at 8:54













It needs to run an .EXE. I guess i could say it's not "critical", but i don't understand why would it run simultaneously with the .EXE - if one of them is stopped, they are both stopped. Plus if you consider that the .EXE needs to run 24/7, the task will too which is something i don't really like.

– Filip5991
Mar 4 at 8:59





It needs to run an .EXE. I guess i could say it's not "critical", but i don't understand why would it run simultaneously with the .EXE - if one of them is stopped, they are both stopped. Plus if you consider that the .EXE needs to run 24/7, the task will too which is something i don't really like.

– Filip5991
Mar 4 at 8:59













The "task running" is the same as "executing task's action". Action is "running exe"? "exe is running" == "task is running". Create simple script (vbs or ever batch) which starts your exe and exits.

– Akina
Mar 4 at 9:34





The "task running" is the same as "executing task's action". Action is "running exe"? "exe is running" == "task is running". Create simple script (vbs or ever batch) which starts your exe and exits.

– Akina
Mar 4 at 9:34













That's an option yes, but the question is: Why if i schedule a task at some time (xx:xx) to run an .EXE it starts at xx:xx, runs the exe and the task finishes and goes to state ready, but when i do it on logon it keeps running as long as the exe is running...?(all the time, and if i stop it manually it stops the exe too)

– Filip5991
Mar 4 at 10:42





That's an option yes, but the question is: Why if i schedule a task at some time (xx:xx) to run an .EXE it starts at xx:xx, runs the exe and the task finishes and goes to state ready, but when i do it on logon it keeps running as long as the exe is running...?(all the time, and if i stop it manually it stops the exe too)

– Filip5991
Mar 4 at 10:42













Welcome to Super User. What problem is being caused by the task running as long as the .EXE is executing?

– Twisty Impersonator
Mar 4 at 12:09





Welcome to Super User. What problem is being caused by the task running as long as the .EXE is executing?

– Twisty Impersonator
Mar 4 at 12:09










0






active

oldest

votes












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%2f1411070%2fwindows-task-scheduler-task-ending%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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%2f1411070%2fwindows-task-scheduler-task-ending%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

Aardman Animations

Are they similar matrix

“minimization” problem in Euclidean space related to orthonormal basis