aurgathor Posted September 1, 2012 Share Posted September 1, 2012 I'd like to write a script file that executes a few commands then re-boots the host machine (Windows 7), and then starts over after it booted up, and do this X times. (X could be anything from 5 to 5,000) I believe to do this I would either need to modify the script (loop count) before reboot, so it would be a self modifying code, or use some variable (perhaps SET SomeName=SomeName+1) to keep the count.Does anyone know any examples? (don't want to re-invent the wheel if I don't have to)Any common scripting language should be fine, though my current scripts (just looping) are written in powershell and in ironpython.TIA Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now