automated script

  • Thread starter Thread starter James
  • Start date Start date
J

James

I am looking to write a bat file to install some software and move some
files for me onto a laptop. The question I have, is there a way to have the
script / bat file 1) reboot you system 2) automatically log back on and 3)
continue running the script from where it left off at. Any help would be
appreciated.
 
to restart computer use "shutdown -r" for other options use "shutdown /?" on
command line.

for the batch file create a shortcut with input parameters like "batfile.bat
restart1"
and copy it to "start menu" start up folder
another way is adding a line to runonce registry key of current user that
needs a registry file.

in your batch file read input parameters using %%1 that returns first
parameter and so on. put an IF command that reads %%1 and if it exists the by
using its value go to next step of your install
 
Back
Top