Solved

File Path To Long

Posted on 2013-12-11
4
422 Views
Last Modified: 2014-03-23
Wondering is there a way to query a server a find out how many files on a particular drive have a path length of more than 260 characters?  Trying to use a cloud service and it is not allowing us to setup the "sync" because I have files on the server that are over 260 characters in length.
0
Comment
Question by:GSLElectric
4 Comments
 
LVL 35

Expert Comment

by:Mahesh
ID: 39712344
Unfortunately I haven't found any freeware , windows utility to find and delete those files

But you can try 3rd party software

http://www.pathtoolong.com/


Mahesh
0
 
LVL 6

Accepted Solution

by:
Biniek earned 500 total points
ID: 39712628
You can use Robocopy tool with powershell  (Robocopy is build in tool in Windows 7, Windows 8, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012)

you should use option /l (list only)


Robocopy
http://ss64.com/nt/robocopy.html


script
http://gallery.technet.microsoft.com/scriptcenter/Function-to-get-file-and-475aeb3a

and read it :
http://learn-powershell.net/2013/04/01/list-all-files-regardless-of-260-character-path-restriction-using-powershell-and-robocopy/
0
 

Author Comment

by:GSLElectric
ID: 39714369
I'm not trying to move the files, but just get  a list of what the files are.
0
 
LVL 27

Expert Comment

by:tliotta
ID: 39715870
Up into Win 8.1, the Windows Shell still has a 260-char limit. As is obvious, the file system under the shell has a far longer limit, approx 32k. For basic background, see Microsoft's Maximum Path Length Limitation topic.

From that info, it looks as if the most useful direction is to code a utility to the Windows API to recurse through a directory tree and to count every instance that exceeds the limit. It seems unlikely that many will have an exact function available. There are bound to be many who can easily code the function as long as they know what needs to be done. (Coding it for Windows would be outside my area.)

Tom
0

Featured Post

Do email signature updates give you a headache?

Are you constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now