Hello everyone
I want to delete a file created by automated windows 7 (integrated in windows 7 DVD). Before I added the bold line " del /f /q %systemroot%\setup" to the script below, the computer restarted automatically after windows installation was finished . The script does delete the files in "%systemroot%\setup", but it does not restart automatically after windows installation is over, as it did before adding that line. I know i messed it up (my fault). I'm sure I missed something with the script syntax. What shoul I do to make it work/restart as before?
Thanks in advance
Script:
@echo off
for %%A in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z do (
if exist %%A\bootmgr (
if not exist %%A\setup.exe (
echo.
echo Installing to drive %%A
echo.
if exist %%A\menu.lst attrib %%A\menu.lst -h -r -s
if exist %%A\menu.lst ren %%A\menu.lst menu_lst.bak
if exist %%A\grldr attrib %%A\grldr -h -r -s
copy %systemroot%\setup\scripts\grldr %%A\grldr
attrib %%A\grldr +h +s +r
%systemroot%\setup\scripts\bootinst /nt60 %%A
del /f /q %systemroot%\setup)
)
)
shutdown /r