Run Once after reboot?

  • Thread starter Thread starter Rob
  • Start date Start date
R

Rob

I am using a run once registry entry to assist in the
process of configuring freshly built servers. I have no
problem calling a batch file with a single run once entry
but how would I call subsequent batch files say after the
second or third reboot? I have been using a confusing
method of running another batch file from the
allusers\startup folder to place another entry in the
registry but this doesn't always work.

Any help would be appreciated.

Thanks
Rob
 
Rob said:
I am using a run once registry entry to assist in the
process of configuring freshly built servers. I have no
problem calling a batch file with a single run once entry
but how would I call subsequent batch files say after the
second or third reboot? I have been using a confusing
method of running another batch file from the
allusers\startup folder to place another entry in the
registry but this doesn't always work.

Any help would be appreciated.
Hi

In those types of cases, I have created a VBScript that is placed
not in RunOnce but in Run, and let the script have its own counter
number (saved to registry and incremented once for each run).
When the counter number reaches it's max number (all tasks done),
it deletes itself from Run (and the vbscript file itself as well
if necessary).
 
Back
Top