Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1038
  • Last Modified:

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

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
purpleoak
Asked:
purpleoak
1 Solution
 
Phillip BurtonDirector, Practice Manager and Computing ConsultantCommented:
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
 
purpleoakAuthor Commented:
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
 
Phillip BurtonDirector, Practice Manager and Computing ConsultantCommented:
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
EirmanChief Operations ManagerCommented:
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
 
VB ITSSpecialist ConsultantCommented:
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
 
nobusCommented:
0
 
purpleoakAuthor Commented:
Exactly what we needed to use to move the data
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now