Solved

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

Posted on 2015-01-15
7
444 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
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 23

Accepted Solution

by:
Eirman earned 500 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

776 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