I am working on designing a script that would determine if a certain section should run (On/Off)

1 = On
0 = Off.

If the section of the script is "On" setting a priority to for the order in which it should run.

Scenario:

Script1 Priority = 125
Script2 Priority = 200
Script3 Priority = 50

In this scenario since script2's priority is 200 it would run first, then script1 and 3. The highest number would determine which order it should run.

For some reason I cannot wrap my brain around this and come up with the logic. I would need this logic for calling approx. 50 different scripts that are in use (On) and approx 45 that are used intermittently (Off).

This is going to be kixtart executable(s) that will reside on our company laptops to keep all of the personal oracle databases in sync. I am considering using an INI file to set the On/Off and Priority which would reside on the network so it could be easily modified and universally effect every laptop.

Any help would be greatly appreciated.


_________________________
I haven't failed. I just found another way that did not work.