Link to home
Start Free TrialLog in
Avatar of ITBenelux
ITBeneluxFlag for Belgium

asked on

Determine the path length of a volume or folder

Experts,

I want to know if there is a way or a tool who can provide me with the following info.  I need to know on my Windows 2003 Server the total length of the folders within a volume.
I suspect that there are folders who oversizes the max path length.  So an overview lik

D:\
 Folder x: 210 char.
 Folder y: 110 char.
 Folder z: 22 char.

Any suggestions.

ITBenelux
Avatar of merowinger
merowinger
Flag of Germany image

what about this?
Set FSO = CreateObject("Scripting.FileSystemObject")
ShowSubfolders FSO.GetFolder("C:\test")
Sub ShowSubFolders(Folder)
 For Each Subfolder in Folder.SubFolders
 pathlen = len(Subfolder.Path)
 Wscript.Echo Subfolder.Path &" Lenght: " &pathlen
 ShowSubFolders Subfolder
 Next
End Sub

ASKER CERTIFIED SOLUTION
Avatar of ardrac
ardrac

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ITBenelux

ASKER

The script works Thx