HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Windows Server 2003
- >
- Re: how to know size of folder
Windows Server 2003
1833490
Members
2781
Online
110052
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2009 05:26 PM
05-31-2009 05:26 PM
how to know size of folder
Hello,
in document and setting i am having 50+ folder i want to know which folder is occupying more space that, its very difficult to check each and every folder by clicking property tab,
surely assign point for each correct reply
thanks,
in document and setting i am having 50+ folder i want to know which folder is occupying more space that, its very difficult to check each and every folder by clicking property tab,
surely assign point for each correct reply
thanks,
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2009 07:44 PM
05-31-2009 07:44 PM
Re: how to know size of folder
The best freeware tool for report disk space -
TreeSize Free
http://www.jam-software.com/freeware/index.shtml
We use it two years, works wery well and quick.
TreeSize Free
http://www.jam-software.com/freeware/index.shtml
We use it two years, works wery well and quick.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2009 10:56 PM
05-31-2009 10:56 PM
Re: how to know size of folder
I have a shareware program DISKdata.
I suppose you could also use a CD/DVD burner software and it would tell you how much space under each directory.
I suppose you could also use a CD/DVD burner software and it would tell you how much space under each directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2009 01:14 PM
06-02-2009 01:14 PM
Re: how to know size of folder
Hi avizen,
I have a script that I use to find information about the sizes of subfolders of a given folder.
This script prompts you to select a directory and then reports back via a webpage the sizes of all subdirectories within that directory (unfortunately not recursively.)
Copy the text below and save with a .vbs extension. It may also help you to develop your own script. Good luck!
_______________________________________
On Error Resume Next
strComputer = "."
Const MY_COMPUTER = &H11&
Const ForWriting = 2
Const WINDOW_HANDLE = 0
Const OPTIONS = 0
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists("C:\SubfolderInfo.htm") Then
objFSO.DeleteFile("C:\SubfolderInfo.htm")
End If
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(MY_COMPUTER)
Set objFolderItem = objFolder.Self
strPath2 = objFolderItem.Path
Set objShell = CreateObject("Shell.Application")
Set objFolderSelect = objShell.BrowseForFolder _
(WINDOW_HANDLE, "Select a folder:", OPTIONS, strPath2)
If objFolderSelect Is Nothing Then
Wscript.Quit
End If
Set objFolderItem = objFolderSelect.Self
strPath = objFolderItem.Path
Set colSubfolders = objWMIService.ExecQuery _
("Associators of {Win32_Directory.Name='" & strPath & "'} " _
& "Where AssocClass = Win32_Subdirectory " _
& "ResultRole = PartComponent")
Set objOutFile = objFSO.CreateTextFile("C:\SubfolderInfo.htm", ForWriting, True)
objOutFile.writeline ""
objOutFile.writeline ""
objOutFile.writeline "Subfolder Information for " & strPath & " "
objOutFile.writeline ""
objOutFile.writeline ""
objOutFile.writeline "
objOutFile.writeline "
objOutFile.writeline "" & vbCrLf
"
objOutFile.writeline ""
objOutFile.writeline ""
'MsgBox "Your results have been catalogued in C:\SubfolderInfo.htm",4096,"Scan Complete..."
Set objShell2 = Wscript.CreateObject("Wscript.Shell")
objShell2.Run "C:\SubfolderInfo.htm"
_______________________________________
I have a script that I use to find information about the sizes of subfolders of a given folder.
This script prompts you to select a directory and then reports back via a webpage the sizes of all subdirectories within that directory (unfortunately not recursively.)
Copy the text below and save with a .vbs extension. It may also help you to develop your own script. Good luck!
_______________________________________
On Error Resume Next
strComputer = "."
Const MY_COMPUTER = &H11&
Const ForWriting = 2
Const WINDOW_HANDLE = 0
Const OPTIONS = 0
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists("C:\SubfolderInfo.htm") Then
objFSO.DeleteFile("C:\SubfolderInfo.htm")
End If
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(MY_COMPUTER)
Set objFolderItem = objFolder.Self
strPath2 = objFolderItem.Path
Set objShell = CreateObject("Shell.Application")
Set objFolderSelect = objShell.BrowseForFolder _
(WINDOW_HANDLE, "Select a folder:", OPTIONS, strPath2)
If objFolderSelect Is Nothing Then
Wscript.Quit
End If
Set objFolderItem = objFolderSelect.Self
strPath = objFolderItem.Path
Set colSubfolders = objWMIService.ExecQuery _
("Associators of {Win32_Directory.Name='" & strPath & "'} " _
& "Where AssocClass = Win32_Subdirectory " _
& "ResultRole = PartComponent")
Set objOutFile = objFSO.CreateTextFile("C:\SubfolderInfo.htm", ForWriting, True)
objOutFile.writeline ""
objOutFile.writeline ""
objOutFile.writeline "
objOutFile.writeline ""
objOutFile.writeline ""
objOutFile.writeline "
Subfolder Information for " & strPath & "
" & vbCrLfobjOutFile.writeline "
" & Now() & "
" & vbCrLfobjOutFile.writeline "
Folder Name | Size in MB | Last Modified | " & _Last Accessed |
" & objFolder2.Name & " | chr(34) & ">" & intSizeInMB & " | " & objFolder2.DateLastModified & " | " & _ objFolder2.DateLastAccessed & " | " & vbCrLf
objOutFile.writeline ""
objOutFile.writeline ""
'MsgBox "Your results have been catalogued in C:\SubfolderInfo.htm",4096,"Scan Complete..."
Set objShell2 = Wscript.CreateObject("Wscript.Shell")
objShell2.Run "C:\SubfolderInfo.htm"
_______________________________________
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP