1.

Solve : size of folder?

Answer»

when viewing many FILES as details, the size of the folders are not SHOWN. only yhe files.
is this normal and if not then how can i change it?Yes, this is completely normal. You can just hold your mouse over a folder to view it's size.well thanxsYou are welcome (and please don't cuss).

Quick question, were you trying to view the sizes of multiple folders at the same time instead of one at a time?In Windows Explorer, if no file is highlighted, the size of the folder is shown below in the status bar



what i was trying to do was looking at alot of folders and trying to see which ones were empty so i could delete them (music folders)I do not currently know of a way to do that, but will let you know if I find one. Quote from: boo on June 09, 2007, 05:50:42 PM

what i was trying to do was looking at alot of folders and trying to see which ones were empty so i could delete them (music folders)
I've GOT something which I think would delete every empty file/folder under Document and Settings (just did that so it wouldn't affect system folders/files).

Code: [Select]for /r %%i in ('dir "C:\Docume~1\*" /s /b') do (
if %~zi EQU 0 del %%i)
There is an app called Tree Size Pro which can show size of foldersor you could just select one or more folders and GO to properties... less EFFICIENT, but it works for me    Quote from: boo on June 09, 2007, 05:50:42 PM
what i was trying to do was looking at alot of folders and trying to see which ones were empty so i could delete them (music folders)
a vbscript to show empty folders
Code: [Select]Set objFSO = CreateObject("Scripting.FilesyStemObject")
myFolder="c:\temp"
Set objFolder = objFSO.GetFolder(myFolder)
GoSubFolders objFolder

Sub GoSubFolders (objDIR)
  If objDIR <> "\System Volume Information" Then
   MainSub objDIR
   For Each eFolder in objDIR.SubFolders
      GoSubFolders eFolder
   Next
  End If 
End Sub

Sub MainSub (objDIR)
   WScript.Echo "Number of files in",objDIR , "is",objDIR.Files.Count   
   If objDIR.Files.Count = 0 Then
      WScript.Echo "0 files folder found:",objDIR
   End If     
End Sub
ummmm
ok i may sound like a retard but how do i use that code?
i appreciate the effort u have put into this although im sure im not the only perosn with this problemchange "myFolder" in the code to where you want to start scanning
save the code as say, findZeroFiles.vbs or something else
on the command prompt, type
c:\> cscript findZeroFiles.vbsthanx
ill try thatquote from CMD when i input 'csript zerofile.vbs'

"input error: cannot find the script file (C:\ etc)"
ummmm?


Discussion

No Comment Found