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;
}
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
|
show 1 more comment
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
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
|
show 1 more comment
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
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
scheduled-tasks windows-task-scheduler task-scheduler tasks scheduling
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
|
show 1 more comment
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
|
show 1 more comment
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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