Copy file to folder with long path
How can I copy the files or fix this issue?
There are a couple of ways you can fix this easily without the use of any 3rd party applications.
- Check the folder path, and shorten some of the folder names in between thereby reducing the file path length. You don’t necessarily need to put the folder name as ‘Mission Impossible Three’ when you can still recognize it as ‘MI 3.’
- The main thing many people miss when they save a file or folder their Desktop is that the actual path to that folder in desktop is either ‘C:\Documents and Settings\%username%\Desktop’ or ‘C:\Users\%username%\Desktop’ depending on your OS. So as you can see, its already longer than you thought it is. Go to Start — Run and type ‘cmd‘ and press OK, or click start/press windows key and type ‘Command Prompt‘. Once in the command prompt window, type the following command :
subst V: “C:\TheRidiculouslyLongFolderNameWhichYouDontNeedAtAll” ,
subst = substitute command
V = a drive letter of my choice, you can select your own.
C:\TheRidiculouslyLongFolderNameWhichYouDontNeedAtAll = the file path you want to shorten. Change it according to your situation.
So, basically this command would convert the entire folder path you provide in the command, into a single temporary drive letter, like V in this case, which gets created in My Computer. Now all you need to do is, go to the My Computer, and open the V drive, and copy the data from there.
Note : To remove the new drive from My Computer, go to Command Prompt again and type subst V: /d