if not "%minimized%"=="" goto :minimized
start /min cmd /C "%~dpnx0"
ping localhost -n 300 > nul
Save as SomeName.bat and put it into your startup folder. That will make it start up automatically when the computer logs in.
Is this working out for ya?
The ping localhost 300 command it for the batch file to wait 300 seconds (5 minutes)
and all the above code is for the command prompt to minimize automatically.
If you don't want it to do that, remove it.