Link to home
Start Free TrialLog in
Avatar of tsi_admin
tsi_adminFlag for United States of America

asked on

How to Find the longest pathname on a server?

I have a fileserver running Windows 2003 server. I know there is a limit on the length of the path there can be. Files start getting hosed up and everything just gets ugly. Is there a way on a server or computer to determine the longest pathname for a group of folders without having to look manually?

pathname  example: //folder1/folder2/folder3/folder4/folder5/file.doc

Thanks

A.M.
Avatar of NJComputerNetworks
NJComputerNetworks
Flag of United States of America image

could use

dir /ad /s

to show you the directories...  

Map a drive to the share...then run

dir /ad /s

or go to the root:

dir /ad /s  >>c:\temp\directories.txt

Then open the directories.txt file using excel... you should be able to see the bigger directories here...

use dir /s to see the files too if you want.

Avatar of tsi_admin

ASKER

Thanks for the response, I tried the above, however it only gives the directory name, I need the number of characters of the entire path.

Thanks,

A.M.
ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

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