?
Solved

compress or move a file with a long file name in Windows

Posted on 2015-01-15
7
Medium Priority
?
677 Views
Last Modified: 2015-01-23
Hello Experts

Hopefully an easy question.

How can I move or compress a folder which contains files with file names that exceed 255 characters in Windows.

I have restored a folder from an Ahsay backup and need to move it but I get the error message that it contains files where the file name is to long.

Any suggestions of a fix would be most appreciated.

Thanks

Purpleoak
0
Comment
Question by:purpleoak
[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
7 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40551098
I suggest it is not the filename that is too long, but the combination of path and filename.

I would create a share on a subfolder and connect to that share. That would reduce the path name.

Alternatively, reduce the path name - rename the parent folders.
0
 
LVL 2

Author Comment

by:purpleoak
ID: 40551104
correct it is a combination of the path and filename as the directory contains lots of sub folders, Is there not anyway around this? Other than the obvious of renaming files or removing folders
0
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40551106
I have given two options, which included

"I would create a share on a subfolder and connect to that share. That would reduce the path name."
0
How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

 
LVL 24

Accepted Solution

by:
Eirman earned 2000 total points
ID: 40551109
ROBOCOPY will accept UNC pathnames including UNC pathnames over 256 characters long.
http://ss64.com/nt/robocopy.html

There is a downloed link here
http://en.wikipedia.org/wiki/Robocopy
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40551455
Use Robocopy (which is included with Windows 7) to move the file with the LFN.

Just use the below command in Command Prompt to move the folder:
robocopy.exe d:\long\folder\path d:\destination /mir /copy:dats /r:0 /w:0 /v
0
 
LVL 92

Expert Comment

by:nobus
ID: 40554891
0
 
LVL 2

Author Closing Comment

by:purpleoak
ID: 40566411
Exactly what we needed to use to move the data
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…
Suggested Courses

762 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