Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Windows 7 Windows 7
Search Search
Search for:
Tech Support Guy > > >

Solved: Destination Path Too Long when Copying


(!)

jarhtmd's Avatar
jarhtmd jarhtmd is offline
Member with 35 posts.
THREAD STARTER
 
Join Date: Jan 2010
Experience: Intermediate
20-Mar-2010, 07:55 PM #1
Solved: Destination Path Too Long when Copying
I copied my data folders/files from my winXP C-drive to my external hard-drive & then to my new win7 C-drive. After about 20-25 minutes of copying (with 5 seconds remaining) ... I got the attached message ... (2 found) ... I clicked Skip ... same message again (1 found) ... I clicked Skip ... same message again (0 found) ... I clicked Skip.

"You can shorten the file name and try again, or try a location that has a shorter path." I compared the "JAR Control Panel Buttons" source & destination folders & found 3 files that were not copied. Not knowing how much too long the paths were, I guessed & they copied OK with shortened names.

I was just lucky. Out of 13,000 files there were a lot of possibilities. I could have had a real mess on my hands.

Is there any way to
  • find out before starting if there will be any errors?
  • effectively click "Skip for all", to prevent having to baby sit the copying process?
    • would clicking "Do this for all current items" accomplish this?
  • output complete paths of affected files to a log?
  • determine how many characters overflowed? How many is too many?
  • copy filename1 to filename2?
Would "Cancel" have stopped copying at that point?
Attached Thumbnails
Solved: Destination Path Too Long when Copying-capture.png  

Last edited by jarhtmd; 20-Mar-2010 at 08:16 PM..
Mumbodog's Avatar
Member with 7,891 posts.
 
Join Date: Oct 2007
Experience: Advanced
20-Mar-2010, 08:41 PM #2
1. Not really

2a. No

2b. Current items means just that, current items with the same error, if a different error happens it will pop up the dialog again.

3. Probably could be done with a script,

http://74.125.47.132/search?q=cache:...&ct=clnk&gl=us

4a. No

4b. 260 is the limit, see "Maximum Path Length Limitation" in the link below
http://msdn.microsoft.com/en-us/libr...47(VS.85).aspx

5. Not sure what you mean

6. Yes.

.
jarhtmd's Avatar
jarhtmd jarhtmd is offline
Member with 35 posts.
THREAD STARTER
 
Join Date: Jan 2010
Experience: Intermediate
20-Mar-2010, 10:28 PM #3
Thanks

Is there any way to copy filename1 to filename2?
In other words, is it possible to "copy/paste" a file, changing the name in the process?
...copy c:\folder\subfolder\filename1 to c:\folder\subfolder\filename2
...not rename...create another (duplicate) file, but with a different name
Mumbodog's Avatar
Member with 7,891 posts.
 
Join Date: Oct 2007
Experience: Advanced
21-Mar-2010, 03:05 PM #4
Not that I know of.

.
TheOutcaste's Avatar
Computer Specs
Member with 9,028 posts.
 
Join Date: Aug 2007
Location: Oregon, USA
Experience: Intermediate
21-Mar-2010, 08:44 PM #5
Only from a Command Prompt, not in the GUI.
If it's going to the same folder you don't have to specify the path for the Destination
If there are spaces you have to use double quotes:
Code:
Copy "C:\folder\subfolder\file name1" "file name2"
Copy "C:\folder\subfolder\file name1" "D:\Someplace Else\file name2"
jarhtmd's Avatar
jarhtmd jarhtmd is offline
Member with 35 posts.
THREAD STARTER
 
Join Date: Jan 2010
Experience: Intermediate
21-Mar-2010, 09:27 PM #6
Thanks, Mumbodog & Outcaste.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑

Content Relevant URLs by vBSEO 3.3.2