Auto re-starting service for a batchfile

A

Aatu

Hi!

I need to run a batchfile every ten minutes on my W2K
server. The batchfile checks/re-assingn rights to newly
created user folders.
I would like to have it run as a service, starting
automaticly at startup and when it has executed the
batchfile, the service re-starts after ten minutes running
the batchfile again....

Is this possible to do with W2K own tools? I know that
there are third part services fos this but....

Cheers
Aatu

PS Posting to this group due to high amount of expertice
over here!
 
P

Phil Robyn

Aatu said:
Hi!

I need to run a batchfile every ten minutes on my W2K
server. The batchfile checks/re-assingn rights to newly
created user folders.
I would like to have it run as a service, starting
automaticly at startup and when it has executed the
batchfile, the service re-starts after ten minutes running
the batchfile again....

Is this possible to do with W2K own tools? I know that
there are third part services fos this but....

Cheers
Aatu

PS Posting to this group due to high amount of expertice
over here!

Just run the batch file as a scheduled task.
 
A

Aatu

Hi Phil!

Let's see if I got you right;
Running the batch file as a scheduled task - every 10
minutes; 6 * 24 = 144 daily scheduled tasks!?
Thanks - but no thanks.

Cheers
Aatu
 
R

Ritchie

Aatu said:
Running the batch file as a scheduled task - every 10
minutes; 6 * 24 = 144 daily scheduled tasks!?
Thanks - but no thanks.

You could have posted to alt.test and probably would have received the
same answer. You need to read up on the schedule service, there's more
to it than meets your eye.
 
H

Herb Martin

You could always re-submit from the batch itself or
check using SchTasks in Win2003 (don't know about
XP but I think SchTasks is new.)

Are you making full use of "Templates" and "Group
Policy"?

These have file settings.
 
A

Aatu

Hi Herb!

Thanks for your interest to the problem.
Original idea was to re-submit from the batch itself. It's
still a possible solution.

But your Q "making full use of TEMPL & GP? What would one
dare to answer? For sure NO. Try to take time to read on
this matter.
HomeDirs are on a SAMBA server.

THX and cheers
Aatu
 
H

Herb Martin

Aatu said:
Hi Herb!

Thanks for your interest to the problem.
Original idea was to re-submit from the batch itself. It's
still a possible solution.

But your Q "making full use of TEMPL & GP? What would one
dare to answer? For sure NO. Try to take time to read on
this matter.

The question was largely rhetorical to prompt you to do just
that -- investigate the features of GPOs and Templates to perhaps
perform some of the changes you wish.
HomeDirs are on a SAMBA server.

Unusual but it should be irrelevant. Why do you feel it necessary
to continuously reset pemission?

There is something likely wrong with the initial assumptions of the
question that this even needs to be done.

If it's on samba is the samba server messing up the permissions?
Do the users mess them up? (We can stop that)

Users should in general BE ABLE to change their own file permissions
(but sometimes that is not appropriate), default settings should take
care of 90% of other cases, and (in a truly secure environment) an
occasional batch file -- maybe once per day -- might tighten them
up a bit.
 
A

Aatu

Hi Herb!

I didn't explain enough exactly the function of the batch
file (and my english is not as good as required here -
sorry).
It will only set user rights/ownrship on folders for newly
created users (created through our own user management
program)- not on already existing. The need to run the
batch is this:
- new users are created ransomly by many
- a new user gets his/hers logon ID and password to
several systems "on-line" with the information that it
will be fully functioning within 10 minutes.

So - once more thanks for your interest. The batch file
and the "reason" why it's executed so often is "OK" to me.
I just wanted a separate re-starting service to run this
batch file - it's much easier to manage a service in
maintence aspect.

Regards
Aatu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top