Use:

Code:
SHELL "%COMSPEC% /e:1024 /c DIR P:\*.* /s >%windir%\temp\dir.txt"  




The output is saved to file: C:\windows\temp\dir.txt

You have to read the last line:

21175 File(s) 3,827,601,140 bytes

and put it in the messagebox...


_________________________
Co