I've just run into a situation that I really don't understand. And to fully illustrate it, I will show the (annotated) output of a complete TCC session (run in full Administrative mode under Windows 7, no less!) below. So, to start,
As you can readily see, the above is just the start of a new TCC session where the first command is a "CD" into the "Work-Area-2011-12-03" directory.
Simply, of course, an attempt to delete the "Work-Area-2011-12-03\Z-Drive.V2011-03-09.unzip" directory, and (rather strange, given that the "/Q" flag was specified on the "RD" command) failure of same.
And, please note, the error message is not the usual "TCC: (Sys) The process cannot access the file because it is being used by another process." message.
So, to see if it is possibly a problem related to the attributes of file(s) and/or director(y/ies) in the "Z-Drive.V2011-03-09.unzip" directory (which, as far as I know from previous experience where I have done this many times, the /Q flag should ignore anyway):
As you can see, there are no "Read-Only", "Hidden", or "System" files and/or directories in the "Z-Drive.V2011-03-09.unzip" directory, so it really doesn't matter what the "/Q" flag does re. "Read-Only", "Hidden", and "System" files and/or subdirectories.
So, I then show a directory I created specifically for this posting:
As you can readily see, said directory ("Test It") is not only "Read-Only", "Hidden", and "System" itself, every file and subdirectory in it is also "Read-Only", "Hidden", and "System".
So I then:
And the "Test It" subdirectory is obviously totally gone, meaning it is absolutely not an issue related to "attributes".
Now, I don't really know if this has anything at all to do with anything, but the "Z-Drive.V2011-03-09.unzip" directory absolutely does not contain any files (of any kind), and I have absolutely no clue as to why that should make any difference at all (and, frankly, IMHO, it shouldn't).
And I will also acknowledge that the directory contains absolutely nothing but subdirectories with ampersands in their names; this directory was actually (re-)created from the contents of a zip file created on March 3, 2011, quite a long time ago which is why I was "looking into" it to see if I could safely just "delete" it. (I was clearly just "experimenting" with directory names that contain ampersand(s), and, as I have mentioned before, I am very "short" of hard-drive space at the present moment so getting rid of things I no longer really need is a fairly-high priority item for me.)
And, I apologize if the bold and bold italic fonts bother anyone; it is just that I have, to this minute, spent at least two to three hours(excluding the time it is taking me to write this posting) trying to resolve this issue (remember, I am very slow because of my multiple disabilities, and it is that hours not spent on accomplishing what I am actually trying to accomplish are "wasted" hours) with no luck at all so I am currently very frustrated; and I truly hope that the above documentation, which is as complete as I know how to make it, completely illustrates the problem.
(And I am also not going to make any more efforts to delete that directory (and its subdirectories) in the immediate future; I want it readily available to try out any suggestions that anyone has to make about resolving this issue.)
HTML:
Sat Dec 3, 2011 5:03:06p
ISO8601 plugin v1.1.1 loaded.
SafeChars plugin v1.5.7 loaded.
TCC 12.11.76 Windows 7 [Version 6.1.7601]
Copyright 2011 Rex Conn & JP Software Inc. All Rights Reserved
Registered to Daniel Mathews
[Z:\]CD Work-Area-2011-12-03
HTML:
[Z:\Work-Area-2011-12-03]Dir /K /M /H
12/03/2011 6:13 Z-Drive.V2011-03-09.unzip
[Z:\Work-Area-2011-12-03]RD Z-Drive.V2011-03-09.unzip /S /Q
TCC: (Sys) The directory is not empty.
"Z:\Work-Area-2011-12-03\Z-Drive.V2011-03-09.unzip"
And, please note, the error message is not the usual "TCC: (Sys) The process cannot access the file because it is being used by another process." message.
So, to see if it is possibly a problem related to the attributes of file(s) and/or director(y/ies) in the "Z-Drive.V2011-03-09.unzip" directory (which, as far as I know from previous experience where I have done this many times, the /Q flag should ignore anyway):
HTML:
[Z:\Work-Area-2011-12-03]PDir Z-Drive.V2011-03-09.unzi? /(a fn)
____D_________ Z-Drive.V2011-03-09.unzip
[Z:\Work-Area-2011-12-03]PDir /S Z-Drive.V2011-03-09.unzip /(a fpn)
____D_________ Z:\Work-Area-2011-12-03\Z-Drive.V2011-03-09.unzip\Ampersand Director
y
____D_________ Z:\Work-Area-2011-12-03\Z-Drive.V2011-03-09.unzip\Ampersand Director
y Source
____D_________ Z:\Work-Area-2011-12-03\Z-Drive.V2011-03-09.unzip\Ampersand Director
y\Test Directory 4 With With One & and Another & and & a Third Ampersand A
____D_________ Z:\Work-Area-2011-12-03\Z-Drive.V2011-03-09.unzip\Ampersand Director
y\Test Directory 4 With With One & and Another & and & a Third Ampersand A\Test Dir
ectory 4 With With One & and Another & and & a Third Ampersand 7
____D_________ Z:\Work-Area-2011-12-03\Z-Drive.V2011-03-09.unzip\Ampersand Director
y\Test Directory 4 With With One & and Another & and & a Third Ampersand A\Test Dir
ectory 4 With With One & and Another & and & a Third Ampersand 7\Test Directory 4 W
ith With One & and Another & and & a Third Ampersand R
____D_________ Z:\Work-Area-2011-12-03\Z-Drive.V2011-03-09.unzip\Ampersand Director
y Source\Test Directory 4 With With One & and Another & and & a Third Ampersand A
____D_________ Z:\Work-Area-2011-12-03\Z-Drive.V2011-03-09.unzip\Ampersand Director
y Source\Test Directory 4 With With One & and Another & and & a Third Ampersand A\T
est Directory 4 With With One & and Another & and & a Third Ampersand 7
____D_________ Z:\Work-Area-2011-12-03\Z-Drive.V2011-03-09.unzip\Ampersand Director
y Source\Test Directory 4 With With One & and Another & and & a Third Ampersand A\T
est Directory 4 With With One & and Another & and & a Third Ampersand 7\Test Direct
ory 4 With With One & and Another & and & a Third Ampersand R
So, I then show a directory I created specifically for this posting:
HTML:
[Z:\Work-Area-2011-12-03]Dir /K /M /A /H
12/03/2011 16:40 Test It
12/03/2011 6:13 Z-Drive.V2011-03-09.unzip
[Z:\Work-Area-2011-12-03]PDir /A "Test I?" /(a fpn)
RHS_D_________ Z:\Work-Area-2011-12-03\Test It
[Z:\Work-Area-2011-12-03]PDir /A /S "Test It" /(a fpn)
RHS_D_________ Z:\Work-Area-2011-12-03\Test It\One
RHS_D_________ Z:\Work-Area-2011-12-03\Test It\Three
RHS_D_________ Z:\Work-Area-2011-12-03\Test It\Two
RHSA__________ Z:\Work-Area-2011-12-03\Test It\FileOne
RHSA__________ Z:\Work-Area-2011-12-03\Test It\FileThree
RHSA__________ Z:\Work-Area-2011-12-03\Test It\FileTwo
RHS_D_________ Z:\Work-Area-2011-12-03\Test It\One\One
RHS_D_________ Z:\Work-Area-2011-12-03\Test It\One\Three
RHS_D_________ Z:\Work-Area-2011-12-03\Test It\One\Two
RHSA__________ Z:\Work-Area-2011-12-03\Test It\One\One\FileOneOne
RHSA__________ Z:\Work-Area-2011-12-03\Test It\One\Three\FileOneThree
RHSA__________ Z:\Work-Area-2011-12-03\Test It\One\Two\FileOneTwo
RHS_D_________ Z:\Work-Area-2011-12-03\Test It\Three\One
RHS_D_________ Z:\Work-Area-2011-12-03\Test It\Three\Three
RHS_D_________ Z:\Work-Area-2011-12-03\Test It\Three\Two
RHSA__________ Z:\Work-Area-2011-12-03\Test It\Three\One\FileThreeOne
RHSA__________ Z:\Work-Area-2011-12-03\Test It\Three\Three\FileThreeThree
RHSA__________ Z:\Work-Area-2011-12-03\Test It\Three\Two\FileThreeTwo
RHS_D_________ Z:\Work-Area-2011-12-03\Test It\Two\One
RHS_D_________ Z:\Work-Area-2011-12-03\Test It\Two\Three
RHS_D_________ Z:\Work-Area-2011-12-03\Test It\Two\Two
RHSA__________ Z:\Work-Area-2011-12-03\Test It\Two\One\FileTwoOne
RHSA__________ Z:\Work-Area-2011-12-03\Test It\Two\Three\FileTwoThree
RHSA__________ Z:\Work-Area-2011-12-03\Test It\Two\Two\FileTwoTwo
So I then:
HTML:
[Z:\Work-Area-2011-12-03]RD "Test It" /S /Q
[Z:\Work-Area-2011-12-03]Dir /K /M /A /H
12/03/2011 6:13 Z-Drive.V2011-03-09.unzip
[Z:\Work-Area-2011-12-03]
Now, I don't really know if this has anything at all to do with anything, but the "Z-Drive.V2011-03-09.unzip" directory absolutely does not contain any files (of any kind), and I have absolutely no clue as to why that should make any difference at all (and, frankly, IMHO, it shouldn't).
And I will also acknowledge that the directory contains absolutely nothing but subdirectories with ampersands in their names; this directory was actually (re-)created from the contents of a zip file created on March 3, 2011, quite a long time ago which is why I was "looking into" it to see if I could safely just "delete" it. (I was clearly just "experimenting" with directory names that contain ampersand(s), and, as I have mentioned before, I am very "short" of hard-drive space at the present moment so getting rid of things I no longer really need is a fairly-high priority item for me.)
And, I apologize if the bold and bold italic fonts bother anyone; it is just that I have, to this minute, spent at least two to three hours(excluding the time it is taking me to write this posting) trying to resolve this issue (remember, I am very slow because of my multiple disabilities, and it is that hours not spent on accomplishing what I am actually trying to accomplish are "wasted" hours) with no luck at all so I am currently very frustrated; and I truly hope that the above documentation, which is as complete as I know how to make it, completely illustrates the problem.
(And I am also not going to make any more efforts to delete that directory (and its subdirectories) in the immediate future; I want it readily available to try out any suggestions that anyone has to make about resolving this issue.)