If I may

, you seem to have a "wrong" approach to the problem.
The idea is not that one posts a code snippet and it will work "as is" on any system, with any settings, whatever.
The snippet works on my Win2K system, Italian.
The idea is to give an example that you should study, understand, and if needed adapt, integrate and modify to your situation, adding error checks, etc.
Did you do exactly what I suggested before?
i.e. creating the Y:\full directory and putting in it an empty file and an empty folder?
Then running from command line the "simple" command?
Or did you just copied and pasted the snippet and ran it?
Testing the snippet by Yzöwl, did you simply tried before the single commands from command line, like:
Du /q "C:\test"
Of course this is my personal take on the matter, see also the reply I gave here:
http://www.msfn.org/board/Batch-file-to-ed...nf-t122652.html
I mean, if I read someone writing something like:
Quote
the above still needs to be tested, (the redirection is needed for completely empty folders, in which case the DIR command will return a "File not found"), but you should have a base to work on.
I see four possibilities:
1) ALREADY know what that sentence means and what "redirection" means
2) try and find some documents/example to understand the sentence and what "redirection" is
3) ask to the OP :
What is "redirection"?
What do you mean?
4) This kinda stuff is too much for me, I give up
You seem to have chosen a fifth way:
5) Ignore whatever the OP wrote, just copy and paste the lines and see if it works.....
jaclaz
This post has been edited by jaclaz: 03 September 2008 - 01:12 PM