Wanted to run a program before and after my Windows system reboot from commandline/DOS prompt and script should execute next step after shutdown command. Like: Loop for 1 to 10: 1. Run my first application1/batch1 file. 2. Reboot system (using shutdown command) 3. Run my second application2/batch2 file. End Loop
We can use startup folder to run the second application, but I wanted to have a single script to do things. The script should start from the place where system got rebooted. Is there any way to do so please help?
