Hi,
I am using the following DOS command to loop through all directories within my current directory and retrieve the Size and Size on Disk properties:
This works perfectly when run from a command prompt but when I put it in a batch file it no longer works. The command prompt window flashes up briefly, then disappears.
Can anyone shed any light on this please?
Thanks,
Ed.
Please do not feed the trolls.....
I am using the following DOS command to loop through all directories within my current directory and retrieve the Size and Size on Disk properties:
Code:
FOR /D %G in ("*") DO "c:\Eds Stuff\Get Directory Sizes\du.exe" -l 0 "%G" >>"c:\Eds Stuff\Get Directory Sizes\dir_details.txt"
This works perfectly when run from a command prompt but when I put it in a batch file it no longer works. The command prompt window flashes up briefly, then disappears.
Can anyone shed any light on this please?
Thanks,
Ed.
Please do not feed the trolls.....