Long Path Error While Copying/Moving Data

Microsoft Operations Manager
Microsoft Windows
Patch management
SQL Server
Systems management software
Hello Frnds, I am very new in this site. I have one problem while I am cpoying/moving the data from the server to the local machine or in the Local machine it self. The problem is that while copying/moving data sometimes is doesn't work due to long path name. Means that if path length is greater then 255 characters then it gives an error. So I've to map my computer upto some level and then it allows me to copy/move the data. So frnds I think you people understand my exact problem that If a path length is greater then 255 characters then what exctly I've to do to copy/move the data. If there is any software or VB Code is available then please let me know. And It is more necessary for me to find a solution of this problem in my job. So please help me in this problem. If you people have any confusion then please inform me. Hope for great support. Thanks, Prashant

Answer Wiki

Thanks. We'll let you know when a new response is added.

I don’t thinking mapping deeper in the directory structure is going to help you because the path length is based on the depth from the drive letter (on the server, not the client mapped drive). I doubt there is anything you can do with it in VB since it’s an OS problem.

The ways I know of getting around this problem are to use Xcopy /C (continue if error occurs) to copy across what will go and locally copy the other files to another media on the server. This will have to be manually moved to the other location and put in the new directory structure where it was before. Your other option is to copy it to CD/DVD using the UDF format and do the same thing.

Hope this helps.

Discuss This Question: 8  Replies

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Cruzincooper
    Microsoft has a free tool call File Server Migration Wizard its a great tool for copying share drives, etc. It won't solve the problem of the long file paths, however, it will give you a report of long file paths. We perhaps will use this tool to consolidate our servers.
    0 pointsBadges:
  • Bvwatson
    Windows has the SUBST command which is used to map a virtual drive letter to a long path name. I don't know if this will work for you, but you can try it on the server. The syntax from the command prompt is: subst drive: path For example: subst V: "C:Documents and SettingsMyLogonIDStart MenuProgramsAdministrative Tools" After this command, drive V: will reference the Administrative Tools subdirectory. This may solve your long path name. I've used this in the distant past (Windows 3.1) but not recently. bryan
    0 pointsBadges:
  • Jzcutler
    Try using the UNC names of the paths (ServerNameShareName...). If that doesn't work, try putting ? in front of the server name in the UNC path. Try a Google on "long short path UNC" to find free utilities to convert long path names to short path names. If you're in VB, look on MSDN for the function that will do this for you in your code. The same search terms might get you there...
    0 pointsBadges:
  • Prince123456789
    hello prashant ! you need not to worry about because i got a solution for ur problem. now u can easily move your data where ever you want
    20 pointsBadges:
  • Tool
    This tool solved my problem, its easy. try to google this tool "Long Path Tool" or you can download it in longpathtool.com..
    10 pointsBadges:
  • TomLiotta
    Why buy a tool when it's easier to resolve the problem with what comes with the system and the resolution has the support of the system vendor? -- Tom
    125,585 pointsBadges:
  • Genderhayes
    User can locate the file from the drive in which it is stored .When inside the drive, the file or folder is highlighted, then the user can choose to carry out the action which they desire on the files by opening the files in the long path tool application.

    10,730 pointsBadges:
  • Laimflint
    se "Long Path This very useful if you are having problems 
    in deleting, unlocking, copying and even renaming files, also very easy. 
    10 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: