- Joined
- Aug 13, 2009
- Messages
- 3,493 (0.60/day)
- Location
- Czech republic
Processor | Ryzen 5800X |
---|---|
Motherboard | Asus TUF-Gaming B550-Plus |
Cooling | Noctua NH-U14S |
Memory | 32GB G.Skill Trident Z Neo F4-3600C16D-32GTZNC |
Video Card(s) | Sapphire AMD Radeon RX 7900 XTX Nitro+ |
Storage | HP EX950 512GB + Samsung 970 PRO 1TB |
Display(s) | Cooler Master GP27Q |
Case | Fractal Design Define R6 Black |
Audio Device(s) | Creative Sound Blaster AE-5 |
Power Supply | Seasonic PRIME Ultra 650W Gold |
Mouse | Roccat Kone AIMO Remastered |
Software | Windows 10 x64 |
I have a relatively simple batch file that prepares a Windows image with various tweaks and whatnot for unattended installation.
At the beginning, I make it delete the entire contents of a folder the files get initially copied to by doing this:
for /d %%j in (d:\win7\*) do rd /s /q "%%j"
del d:\win7\*.* /q
That's the only way I managed to figure out how to remove all the subfolders and files.
Now: for some super obscure reason I cannot understand, if you edit the batch file and save it while the batch is running, the damn thing wipes the ENTIRE disk clean.
Does anyone more knowledgeable have any idea why the heck does happens?
At the beginning, I make it delete the entire contents of a folder the files get initially copied to by doing this:
for /d %%j in (d:\win7\*) do rd /s /q "%%j"
del d:\win7\*.* /q
That's the only way I managed to figure out how to remove all the subfolders and files.
Now: for some super obscure reason I cannot understand, if you edit the batch file and save it while the batch is running, the damn thing wipes the ENTIRE disk clean.
Does anyone more knowledgeable have any idea why the heck does happens?