- Aug
- 15
- 0
This is a VERY weird problem. We have a Take Command batch file which at it's heart executes this command:
del /[d-30,1-1-80] /s /x /z /y /e /k s:\temp > "%Logfile"
What this command does is effectively delete files & folders over 30 days old. S:\Temp is a temporary location on our network and people know that files get deleted after 30 days.
We have recently migrated the server hosting the S: drive from Windows 2003 to Windows 2008.
Since then, user's have reported that their folder in S:\Temp (e.g. S:\Temp\Alex) has deleted before it should have, i.e. their swore blind that they had saved a file in there yesterday and it had gone today.
We suspected user error until we happen to notice that S:\Temp\Alex hadn't actually been deleted but had ended up with the hidden and system attributes set.
As I test, I've just restored S:\Temp from last weekends backup and S:\Temp\Alex is there.
Run the above command and bizarrely the S:\Temp\Alex folder gains the hidden & system attributes.
What is also perplexing is that right now, the delete command doesn't actually delete anything from S:\Temp\Alex (it does from other sub-folders) so it's doubly perplexing why the attributes are being changed.
Cheers, Rob.
TCC 11.00.44 Windows 2003 [Version 5.2.3790]
del /[d-30,1-1-80] /s /x /z /y /e /k s:\temp > "%Logfile"
What this command does is effectively delete files & folders over 30 days old. S:\Temp is a temporary location on our network and people know that files get deleted after 30 days.
We have recently migrated the server hosting the S: drive from Windows 2003 to Windows 2008.
Since then, user's have reported that their folder in S:\Temp (e.g. S:\Temp\Alex) has deleted before it should have, i.e. their swore blind that they had saved a file in there yesterday and it had gone today.
We suspected user error until we happen to notice that S:\Temp\Alex hadn't actually been deleted but had ended up with the hidden and system attributes set.
As I test, I've just restored S:\Temp from last weekends backup and S:\Temp\Alex is there.
Run the above command and bizarrely the S:\Temp\Alex folder gains the hidden & system attributes.
What is also perplexing is that right now, the delete command doesn't actually delete anything from S:\Temp\Alex (it does from other sub-folders) so it's doubly perplexing why the attributes are being changed.
Cheers, Rob.
TCC 11.00.44 Windows 2003 [Version 5.2.3790]