Red Squirrel
[H]F Junkie
- Joined
- Nov 29, 2009
- Messages
- 9,211
Just a heads up.
Story:
So you know in windows how if you try to delete a bunch of files, if one fails it just halts the whole process? Well I was getting pissed off by this so I whipped up a batch file with a "del *.log*" command and executed it in that folder. I kinda forgot how some commands wont run in UNC paths and default to windows folder. The del command is one of them. Yeah...
Just glad it was *.log* and not actually *.*. It did screw up the server but a reboot fixed the issue. Guess it killed an active log file and the app was not designed to handle that or something.
So yeah, be careful with UNC paths and destructive commands.
This also begs a few questions:
MS invented UNC paths, why can't they be natively supported properly as a normal path?
And WHY default to windows?! At least default to temp or something! Silly Microsoft!
WHY does MS halt a whole delete or copy operation over one single error?! They've always done this. At least keep going and just show a final status at the end or something.
I can't be the only one who has done something like this, fess up!
Story:
So you know in windows how if you try to delete a bunch of files, if one fails it just halts the whole process? Well I was getting pissed off by this so I whipped up a batch file with a "del *.log*" command and executed it in that folder. I kinda forgot how some commands wont run in UNC paths and default to windows folder. The del command is one of them. Yeah...
Just glad it was *.log* and not actually *.*. It did screw up the server but a reboot fixed the issue. Guess it killed an active log file and the app was not designed to handle that or something.
So yeah, be careful with UNC paths and destructive commands.
This also begs a few questions:
MS invented UNC paths, why can't they be natively supported properly as a normal path?
And WHY default to windows?! At least default to temp or something! Silly Microsoft!
WHY does MS halt a whole delete or copy operation over one single error?! They've always done this. At least keep going and just show a final status at the end or something.
I can't be the only one who has done something like this, fess up!