Solved

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

Posted on 2015-01-15
7
596 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 24

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Invest in your employees with these five simple steps to improve employee engagement and retention.
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…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

707 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