Solved

File Path To Long

Posted on 2013-12-11
4
428 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 36

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

770 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