Source path too long :-Unable to delete mutiple number of folder and files from windows 2008 R2 file server

Hi Team,
we have a file server on windows server 2008 R2, I have copied some data from one server to another server using robocopy . I have checked access permission it seems okay no issues with access permission. but when i am trying to delete these folder i am
getting below error message
Error message:- 
The source file name are larger than is supported by the file system.try moving to a location which has a shorter path name or try renaming to shortcut names before attempting this operations
Regards,
Triyambak 
Regards, Triyambak

I have tried everything , but nothing help , getting same error 
could any one help me regarding this.
Regards, Triyambak
I have not looked at the other thread mentioned, but usually when this ends up happening, There are several ways to go about it.    One is to map a drive to the UNC path deeper into the folder structure.   
So instead of C:\long\path\that\we\dont\want\files\in
You map a drive.. lets say M:\   to     \\computer\c$\long\path\that\we\dont\want
Now, when you open Explorer to M:\ you've elimintated the length of the path down to M:\files\in which is completely usable.
The other way, is to shorten the names of everything.    For example...
Folder structure like this:
Root
-----Folder1
-----Folder2
--------------Folder2A
-----Folder3
--------------Folder3A
Rename all the folders to shorten up the path.     Rename Folder1 to '1' Rename Folder2 to '2', Rename folder3 to '3.    Then try to delete.  If it's still too long,  go one folder deeper.   Rename Folder2A to '1'  and
Rename Folder3A to '1' and so on.     Basically keep renaming everything to a single digit character and eventually you'll shrink the path down to where you can shift-delete everything remaining.
Hope that helps.    
Brian / ChevyNovaLN

Similar Messages

  • Printers deleting themselves from Windows 2008 R2 Print Server

    We have a server that is seemingly randomly deleting the print objects from the server itself. When we look at the Print server console, we see that all the installed/shared printers are "Error - Deleting". If we clear the jobs in the queue, the
    printer deletes itself.   Stopping and restarting the spooler service doesn't help, rebooting the server hasn't helped.  
    We had this issue 2 weeks ago on the same server. We just recreated the printers and it's been fine until yesterday, then they all started deleting themselves. There doesn't appear to be anything in
    any log we can find to point to a reason for this. We've even checked the login logs and it's only been 3 admins that have logged in to that server in the last 2 weeks. 1st time to rebuild the printers 2 weeks ago, and yesterday because the printers started
    disappearing. 
    Anyone have some clues?

    Hi Paul,
    it is really interesting case.. I would start with checking event viewer under Applications and services Logs > Microsoft > Windows > PrintService > Admin and Operational (you have to enable second one first)
    Any scheduled tasks? Group policies? system restore?
    The only thing in the logs is that it is shifting the default printer when one of us logs into the server, using RDP by the way.  There are no scheduled tasks, group policies or system restore being used. 

  • File path too long when collecting??...

    Hi all,
    REALLY hope someone has some wisdom on this! I've searched forums and the web and not yet found an answer....
    I've got a MASSIVE project on an external drive that's on the way out, so I want to collect the project that's on it to another new healthy drive. The current file structure leaves alot to be desired (several years of updating the same project and splitting it into managable portions then importing them back together several times, files still on there that aren't in use in AE anymore but have been kept 'incase we need them again later', etc...you can imagine the mess!)
    SO, I'm getting the 'file path too long' error when trying to collect it. Now, I could manually go through every folder and sub folder and tidy things up within AE - this would days about a week I reckon! - but I'll do it if that's the only way. What I'm wondering is this: -
    A) is the problem AE is having with the deep structure *WITHIN* ae project, or with the actual folders/files on the disk itself?
    B) if I tidy it up in AE only will that fix it?
    C) is there an easier way to do this rather than manually going through everything and looking for the offenders???
    Thanks guys,
    Jim.

    GULP....so I have to reorganise my assets OUTSIDE of AE and then relink it all WITHIN AE afterwards?? With 3 x 430GB projects and thousands of assets that is going to take a looooooooonng time.
    What I don't understand (or like) is how AE will let you get this far without any warning and still operate/save, etc but then when you come to collect is goes 'urr urrrr, computer says no'.
    Is there really no way of automating some of this then? I mean even a script that highlighted items in the project that are over the maximum path length would save a hell of a lot of manual searching and counting.
    Thanks for your replies guys but.....AAAARRGGHH!!!!!

  • Restore-DfsrPreservedFiles "Path Too Long" Error

    I'm attempting to run this on a file server where all replicated folders live in the D:\data drive. I am not sure why I would get a "Path Too Long" error and the exception does not provide any clues as to what it doesn't like -- or if it does,
    I am reading it wrong. Ideas anyone? 
    PS C:\Users\Administrator> Restore-DFSRPreservedFiles -Path "D:\data\DfsrPrivate\ConflictandDeletedManifest.xml" -Restor
    eToPath "D:\backup\recovery\dfsrrecovery" -RestoreAlLVersions -CopyFiles -Force -verbose
    VERBOSE: Loading preserved file manifest: "D:\data\DfsrPrivate\ConflictandDeletedManifest.xml"
    VERBOSE: Restoring preserved files from manifest: "D:\data\DfsrPrivate\ConflictandDeletedManifest.xml"
    Restore-DFSRPreservedFiles : The specified path, file name, or both are too long. The fully qualified file name must
    be less than 260 characters, and the directory name must be less than 248 characters.
    At line:1 char:1
    + Restore-DFSRPreservedFiles -Path "D:\data\DfsrPrivate\ConflictandDeletedManifest ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Restore-DfsrPreservedFiles], PathTooLongException
        + FullyQualifiedErrorId : System.IO.PathTooLongException,Microsoft.DistributedFileSystemReplication.Commands.Resto
       reDfsrPreservedFilesCommand

    Hi Mark,
    This has been already discussed here. Please refer the below thread.
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/14fc8393-d616-408f-abad-49a3ccb15585/windows-server-2012-r2-running-restoredfsrpreservedfiles-getting-path-file-name-or-both-are-too?forum=winserverfiles
    Devaraj G | Technical solution architect

  • Destination Path Too Long having this problem on desk top computer

    Destination Path Too Long
    when I try to move files from my desk top screen to my external hard drive or my internal hard drive I get this error message:
    Path Too Long: The file name(s) would be too long for the destination folder. You can shorten the file name and try again, or try a location that has a shorter path.
    These are files that I have previously moved from my internal hard drive on to my desk top [screen] computer, this error seems to pop up on my desk top not my lap top, both running windows
    7. These files do not have long names, and I can not "skip" these files these are files that I have created for business or fun.
    I am not a computer tech so if some one could instruct me what to do I would appreciate this.

    Hi,
    the destination path is the full path you are copying to. In case of a library for example that would be (by default) c:\users\username\folder. The length of paths quickly adds up and may not exceed 255. Copying the file to a longer destination
    path would render the file inaccesible in standard ways.
    Consider to try copying the files to a shorter destination path (not to c:\folder\longfolder\subfolder\folder\ but to c:\x\for example). Please post back if that does not work either.
    The foldername in your screenshot alone already has 40 about characters. Consider using shorter descriptive names for your folders. For example 'Bible scripts FB2010' only contains 22 characters and contains more or less the same info)
    http://support.microsoft.com/kb/177665
    If you still use large folderstructures to 'easily' track down your files, consider spending less time arranging files and using search more often. If I for example would need some file, I tap the windows key and start typing some part of the filename or
    even it's contents or tags. Usually before I have typed  afew characters, the startmenu shows exactly the document or picture I need. I' ve got about 4000 documents of all kinds stored in "my documents" only roughly spread over some folder like Letter,
    Script, Work, House\*year*, Pay\*year*...Index your folders, use a bit of tagging and let the computer do the work!
    Also, Windows does contain methods to access longer filepaths (see
    http://social.technet.microsoft.com/Forums/en/winservergen/thread/cc7491ae-5039-4cf5-8347-d43f22389bb0) but these are not recommended for daily use as applications might fail handling files stored in such paths.
    MCP/MCSA/MCTS/MCITP

  • I want to upgrade my old airport express to the new express. Can I just switch out the old for the new or must I delete the old network first and start from scratch with the new express?

    I want to upgrade my old airport express to the new express. Can I just switch out the old for the new or must I delete the old network first and start from scratch with the new express?

    It is not necessary to delete your old wireless networks first, but doing so may eliminate confusion. If you wish to do that, open System Preferences > Network, and select Wi-Fi from the left column. Click the Advanced... button, then select your old wireless networks and delete them with the "–" (minus) button. Make sure the "Remember networks this computer has joined" remains checked.
    OK then Apply.
    This prevents your Mac from searching for your previous network which will no longer exist.
    A new Express creates an open wireless network that you must select before you can configure it. It appears in your Wi-Fi menu like this:
    Select it. AirPort Utility will load and walk you through its configuration.
    Edit: If you are really using OS X 10.5.1 as shown in your profile, the above screenshot is not applicable. Instead, select the network called "Apple network nnnnnn" and then launch AirPort Utility.

  • I have deleted all my videos songs and photos from my iphone 4 but when i connect to itunes it still shows 17gb free. how can I solve this issue without restore. Total storage of my iphone is 32 gb.

    I have deleted all my videos songs and photos from my iphone 4 but when i connect to itunes it still shows 17gb free. how can I solve this issue without restore. Total storage of my iphone is 32 gb.

    I don't see an issue, but if you mean why didn't you get most of your memory back you need to see what else is using storage. Go to Settings/General/Usage. Wait a bit for it to calculate storage allocation, then when it finishes you can see how much storage each app uses.

  • Can't add own application to RemoteApps - "You must specify a file from the RD Session Host server SERVERNAME by using the UNC path....

    Hi, there
    I'm not really pro- at RDS in server 2012 (r1), but I have a problem and don't find anything suitable on internet:
    I'm trying to publish one of my own, unlisted programs to rdweb, but it keeps saying "You must specify a file from the RD Session Host server SERVERNAME by using the UNC path...."
    1) I provided the path in the unc name - when I click "Add.." then i browse the the .exe file via network share, not via local path. So that should be OK
    2) Firewall is turned off and eventhough the exeptions are enabled, both of then, checked
    What else should I do to make this work?

    Okej, I found the sollution:
    You have to specify the path like \\hostname\drive_letter$\path-to-the-program.
    I was doing wrong because i wrote it like \\hostname\ShareName\path-to-the-program.
    I was misleded because the wizard wants me to find the program by clicking, and not by entring the path manualy.

  • My employer and I both have iPhone 5.  We both recently updated as recommended.  Now we can no longer text each other.  I can text and receive from other iPhone users.  Any ideas??

    My employer and I both have iPhone 5.  We both recently updated as recommended.  Now we can no longer text each other.  I can text and receive from other iPhone users.  Any ideas??

    Well, that didn't work since I am already using my appleID for both FaceTime and iMessage but i did see the option to send as SMS when iMessage not available.  so I am now able to send to him  but I don't know if he can send to me.  It's a start.  It is only with his phone.  His wife has a Galaxy and they are both on AT&T and she can send and receive.  I am on sprint.  If that info helps

  • Unable to connect to Deskjet 3545 via Wireless Direct from Windows 8.1 laptop (Lenovo Thinkpad E530)

    Hi, It's a newly bought printer. I am unable to connect to the printer via Wireless Direct from Windows 8.1 64bit laptop. I have enabled the Wireless Direct with security on the Printer. Connected to the Printer SSID from my laptop wifi. Created the new printer from Driver software. It discovers the printer with it's name,IP etc; Upon selecting the printer and click on 'Next' button on the screen, results in a 5 min search process and finally displays that it could not connect. I have tried pinging the printer and it's able to pingf the IP of the printer successfully. I have even tried disabling the Norton antivirus, but result is the same. regards,sathwik  

     

  • I accidentally deleted Google chrome default folder and my bookmarks are also deleted. Can anyone help to recover lost bookmarks?

    I accidentally deleted Google chrome default folder and my bookmarks are also deleted. Can anyone help to recover lost bookmarks?

    Time Machine

  • HT1766 i deleted a ton of photos and videos from my phone but it's still telling me iCloud won't back up because there is not enough storage available.  how do i get around this?

    i deleted a ton of photos and videos from my phone but it's still telling me iCloud won't back up because there is not enough storage available.  how do i get around this?

    The Storage space its referring to is on iCloud. How much iCloud space is left, and how much space is your iPhone using?
    iCloud storage space and the iPhone's physical storage space are 2 different things.

  • How to recover the deleted SMS message, Contacts, CallHistory and Photos from ipad.

    how to recover the deleted SMS message, Contacts, CallHistory and Photos from ipad.

    If you did the backup of your data before deleting then you can easily get back the data by the following steps:
    1. First don’t connect your iPad directly to computer because the iTunes only saves the most recent backup
    2. Now make sure that you have a valid backup as listed iTunes> preferences> devices
    3. Before connecting your iPad make sure to check iTunes>preferences> devices "prevent iPad from syncing automatically." Because this will ensures we don't erase the previously stored backup. Then select ok and close the window after checking " don't sync"
    4. Now connect your iPad to your computer .
    5. Select the iPad as seen in the left bar of iTunes, as listed under the devices .
    6. Select version and click on restore from options.
    7. It takes a while to for iPad to erase itself, reset and restart.
    8. After the iPad is restart you will see Set Up Your iPad in iTunes on your computer, and now just click the restore from the backup and click continue. It will take 10 to 12 minutes to recover your data from iPad, including the deleted sms, notes, photos, music, contacts etc.
    Here is a step by step guide for you: http://www.video-converter-mac.org/recover-deleted-ipad/

  • ITunes installation error - no C-drive, invalid C-drive, or specified path too long

    This is an answer rather than a question as answer to a previous question seemed unresolved and I had similar problem which I have resolved. I thought posting it might help others...
    My OS System disk wasn't set as the C-drive (how or why I'm not sure, but I have several OS installations and 2 hard-drives and must be a result of the way I installed these). And so I had no C-drive at all (except when I plugged in USB Pen's they would appear as C-drive).
    iTunes wouldn't let me install unless I had a C-drive - probably said I had an invalid C-drive or something. So I tried creating a virtual C-drive by mapping the C: drive letter to a new empty folder on my system disk (G-drive) to "C:". See - http://ask-leo.com/i_have_no_c_drive_but_some_programs_insist_on_it_what_can_i_d o.html
    This DIDN'T resolve the problem as it merely created a different error message - it said: "The specified path is too long C:\Program Files" NB This is despite me telling it to install iTunes to the G-drive.
    Solution: I removed the virtual C-drive (ie. mapping of "C:"  to the new folder) and instead in My Computer -> Manage -> Storage -> Disk Management, I assigned the C: drive letter to a drive partition I use for storing media (I plan to name it back else several programms will fail to store media correctly). I also moved the iTunes.exe installation file to that C: partition in case that helped. Installation (still told to be the G-drive) was now successful.
    What I noticed is iTunes created the following path - C:\Program Files\JavaSoft\JRE\1.3.0_02\lib\ext - and dumped this file there: QTJava.zip Looks suspiciously like an install file for the bundled (and required) updated Quick Time, which it obviously requires to be dumped on a C-drive. Once installed I doubt that file will still be needed, so I'll delete it after I restart (it won't let me at the mo).
    If you don't have extra partitions that you can assign C-drive to, then you could either try Adding (rather than changing) the C: drive letter to your current System disk. IN FACT I'M THINKING THAT'D BE THE BEST THING TO DO ANYWAY as then all programmes will use the correct system disk regardless of whether they think they should be using G: or C: (though I've not tried it, so can't be sure this works). Alternatively I reckon you could connect a USB stick and assign C-drive to that (if it isn't in fact automatically assigned it). Allow it to dump the QTJava.zip file on to it and once installed, you can remove the USB Stick - NB I'd suggest using the Safe Removal. (Well, might be worth restarting first in case it is referencing anything on it that isn't finished until restart.)
    Hope this helps someone as was driving me potty coz I couldn't update my iTunes and thus couldn't sync my iPhone!

    Hi AltafB,
    For your situation, you can short the path for the source code. Or use a short path for build agent folder in your build definition. You can refer to the links below to solve your problem:
    http://blogs.msdn.com/b/aaronhallberg/archive/2007/06/20/team-build-and-260-character-paths.aspx
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/1638a5f0-9321-4ff9-9ee7-6d347badb972/please-some-solution-to-the-specified-path-file-name-or-both-are-too-long?forum=tfsbuild
    Besides, since you deploy Orchard to Azure, you can also publish it directly using publish profile in Visual Stduio or WebMatrix directly.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Siteinfo.sol file path too long

    Hopefully someone here can help with this problem. First, I'm
    running Windows XP Pro. Every night I do an automatic backup of my
    C: drive to an external hard drive (Maxtor) using Maxtor's backup
    software, EMC Retrospect Express HD 2.0. However, the backup quits
    when it tries to write a particular Flash file because the file
    path is too long. The file at the end of the path is siteInfo.sol
    and it is in a folder that is nested within 13 other folders. The
    file path is:
    C:/Documents and Settings/[my username]/Application
    Data/Macromedia/Flash Player/#Shared
    Objects/5WGFZ2N2/assets.cobalnitra.com/teams/repository/export/535/e93087b291004840/b0003 ba76d6c7/535e9308/7b291004840b0003ba76d6c7.swf
    From the "teams" folder on down through the nesting, there
    are no other files in any of the folders. The simplest solution
    would be to delete the "teams" folder, and thus all of the folders
    within it and the siteInfo.sol file, but I need to know if these
    folders (from "teams" on down) and this file are necessary for the
    operation of Flash Player. If they are, does anyone have another
    solution? I could go into the backup program and manually designate
    that every folder and file on my C: drive other than these be
    backed up, but that's a pain. I would love to call Adobe technical
    support, but there is no phone support for the free version of
    Flash Player.
    Thanks in advance for any help that anyone can provide.
    Todd Serota

    Todd,
    This is a Flash Shared Object that was written to your
    machine by cobalnitra.com. It's like a 'cookie' inside of Flash.
    You can safely get rid of it, though you might lose perhaps some
    saved game settings (or something saved by cobalnitra.com).
    Basically if that site is something you use a lot and does
    something important to you, then keep it. Otherwise you can delete
    everything under the #Shared Objects folder.

Maybe you are looking for