Solved

File Path To Long

Posted on 2013-12-11
4
438 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 37

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
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…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Suggested Courses

617 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