• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Automatic file startup every 10 minuts

Elect

Junior Member
I have an EXE that needs to be started up every 10 minuts ..
I've tried to use batch files, but that doesn't work ..

Does anyone has an idea how to do that ??
the Taskmaner doesn't work ..
 
batch files and Task Manager

Sounds like you're using a windows OS but you don't specify which one.

In a batch file you could loop the batch file using the "sleep" command for making it wait 10 minutes. Please note that "sleep" is a part of the NT ReskKit. I don't recall if it is part of the Win2k system, though if not it would be available in the Win2k ResKit as well. This can be used on Win9x systems if recall correctly. The batch would look something like this:


@echo off
goto begin

*******************************************
blah.bat
written 10.13.00
by spiff

This batch file calls the stuff.exe every
10 minutes 5 times

This batch file assumes that the file is
not in the system path

*******************************************

:begin

start d:\utilities\stuff.exe
sleep 600

start d:\utilities\stuff.exe
sleep 600

start d:\utilities\stuff.exe
sleep 600

start d:\utilities\stuff.exe
sleep 600

start d:\utilities\stuff.exe
sleep 600

:end


You could also loop it to run infinitely until a manual break was issued:


:begin

start d:\utilities\stuff.exe
sleep 600
goto begin

:end


Please note that sleep intervals are specified in seconds... so 10 minute cycles would be 600 seconds


If you have IE 5.01 or later you will have a scheduler service called "Task Manager" which offers much more flexibility in scheduling. What I would do is create a batch file that calls the executable and then set it to repeat. The batch file would be very simple:

@echo off
goto begin

*******************************************
doh.bat
written 10.13.00
by spiff

This batch file calls the stuff.exe

*******************************************

:begin

start stuff.exe

:end

Under Task Scheduler, choose the Schedule tab to set the frequency for when this starts. you can specify daily/weekly/monthly and then set a time for the task to start. You can further define the this by going under the "Advanced" option to specify that this be repeated in intervals of minutes or hours.
 
It gives an error with the command: sleep 600
it doesn't know what it is .. (dos) any ideas ?

ps, I use windows98
 
As I said in the original post, this is not contained in the OS, it comes with Resource Kits. You may be able to d/l it from MS web site.

Once it is placed on the local system, you will be able to use it. It is simple a command and does not require any installation
 
Back
Top