Solved

File Path To Long

Posted on 2013-12-11
4
419 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
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 tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

763 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

12 Experts available now in Live!

Get 1:1 Help Now