start .exe from 08:00 to 18:00 at every workday
Moderator: DosItHelp
start .exe from 08:00 to 18:00 at every workday
I have in c:\mydir\MyExe.exe
i need to run at every Hour for each workingday, the .exe in dir from 08:00 to 18:00
possible with a batch?
Tks.
sorry for my bad english.
i need to run at every Hour for each workingday, the .exe in dir from 08:00 to 18:00
possible with a batch?
Tks.
sorry for my bad english.
Re: start .exe from 08:00 to 18:00 at every workday
What's wrong with using Windows Task Scheduler?
Re: start .exe from 08:00 to 18:00 at every workday
no privilege in Windows Task Scheduler....
Re: start .exe from 08:00 to 18:00 at every workday
How do you expect a program to start automatically at a specific time if you do not have some type of service or daemon running in the background to monitor the time?
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: start .exe from 08:00 to 18:00 at every workday
And then it stays open forever on an infinite loop and you just pray that it never gets closed by accident or the computer reboots?
Re: start .exe from 08:00 to 18:00 at every workday
see in object...ShadowThief wrote: ↑23 May 2018 08:10And then it stays open forever on an infinite loop and you just pray that it never gets closed by accident or the computer reboots?
i need to run from 08 to 18, after 18 close bat/application
-
- Posts: 240
- Joined: 04 Mar 2014 11:14
- Location: germany
Re: start .exe from 08:00 to 18:00 at every workday
Hello,
In timed batch file execution this was discussed.
viewtopic.php?f=3&t=8268&p=56092#p54961
Phil
In timed batch file execution this was discussed.
viewtopic.php?f=3&t=8268&p=56092#p54961
Phil
Re: start .exe from 08:00 to 18:00 at every workday
What do we do if you start the batch file at 7:50 am. Do you want it to wait until 8 am to run any additional code in the batch file?
What do we do if you start the batch file at 8:10 am. Do you want it to run immediately? Then do you want the next instance to run at 9 am or 9:10 am?
What do we do if you start the batch file at 8:10 am. Do you want it to run immediately? Then do you want the next instance to run at 9 am or 9:10 am?
-
- Posts: 240
- Joined: 04 Mar 2014 11:14
- Location: germany
Re: start .exe from 08:00 to 18:00 at every workday
@squashman
He wants to start the batch code every hour.
He wants to start the batch code every hour.
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: start .exe from 08:00 to 18:00 at every workday
Do you want it to wait until 8 am to run any additional code in the batch file? YES!Squashman wrote: ↑23 May 2018 09:50What do we do if you start the batch file at 7:50 am. Do you want it to wait until 8 am to run any additional code in the batch file?
What do we do if you start the batch file at 8:10 am. Do you want it to run immediately? Then do you want the next instance to run at 9 am or 9:10 am?
Then do you want the next instance to run at 9 am or 9:10 am? YES!
note:
good comment!
Squash yoy read in my mind:-)
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: start .exe from 08:00 to 18:00 at every workday
Sorry...ShadowThief wrote: ↑24 May 2018 03:45That wasn't a yes/no question. If you start the script at 8:10, should the next instance run at 9:00 or should the next instance run at 9:10?
9:10
Re: start .exe from 08:00 to 18:00 at every workday
So do you see how this can go on and on with us asking questions. I program for a living. If you don't provide enough technical specifications we can't even begin to program such a task.sal21 wrote: ↑24 May 2018 04:04Sorry...ShadowThief wrote: ↑24 May 2018 03:45That wasn't a yes/no question. If you start the script at 8:10, should the next instance run at 9:00 or should the next instance run at 9:10?
9:10