From: Meinolf Weber [MVP-DS] on
Hello boe,

Never had problems when using robocopy, either with longer then 255 characters
or even with corrupted files. But as you said that also this tools fail i
have no idea. Normally i suggest to use that tools exactly for that reason.

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


> Hello,
>
> A company I work with has many folders nested within subfolders,
> within subfolders with really long folder names that when you go all
> the way to the end exceed 255 characters. Robocopy, richtools, etc
> all fail when copying these really long folder paths and file names.
> Is there any utility I can run to correct these or at least identify
> all of them? I need to copy a 4TB volume and it keeps failing. I
> can't have the server offline for too long and I can't wait for it to
> fail to fix all of them.
>
> Thanks
>


From: boe on
Thanks - not sure why rich copy isn't working - perhaps a setting I should
have used.

"Meinolf Weber [MVP-DS]" <meiweb@(nospam)gmx.de> wrote in message
news:6cb2911de1258cc86d75c8f2cbf(a)msnews.microsoft.com...
> Hello boe,
>
> Never had problems when using robocopy, either with longer then 255
> characters or even with corrupted files. But as you said that also this
> tools fail i have no idea. Normally i suggest to use that tools exactly
> for that reason.
>
> Best regards
>
> Meinolf Weber
> Disclaimer: This posting is provided "AS IS" with no warranties, and
> confers no rights.
> ** Please do NOT email, only reply to Newsgroups
> ** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
>
>> Hello,
>>
>> A company I work with has many folders nested within subfolders,
>> within subfolders with really long folder names that when you go all
>> the way to the end exceed 255 characters. Robocopy, richtools, etc
>> all fail when copying these really long folder paths and file names.
>> Is there any utility I can run to correct these or at least identify
>> all of them? I need to copy a 4TB volume and it keeps failing. I
>> can't have the server offline for too long and I can't wait for it to
>> fail to fix all of them.
>>
>> Thanks
>>
>
>
From: Meinolf Weber [MVP-DS] on
Hello Pegasus [MVP],

+++++++++++++++++1

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


> Thanks for the feedback. I think you will need to educate your users
> so that they put their information into the files themselves rather
> than into the file and folder names.
>
> "boe" <boe_d(a)nospammyhotmail.com> wrote in message
> news:35AE00DA-F638-4113-B86B-EF9C89AEB3BF(a)microsoft.com...
>
>> Thanks - I started your batch file a few minutes ago and it has
>> already found 100 such directories. I have 4 TB to scan so it will
>> take a while but this is VERY good to know.
>>
>> "Pegasus [MVP]" <news(a)microsoft.com> wrote in message
>> news:#rZRC6LuKHA.732(a)TK2MSFTNGP06.phx.gbl...
>>
>>> "boe" <boe_d(a)nospammyhotmail.com> wrote in message
>>> news:hmeg89$c9f$1(a)speranza.aioe.org...
>>>
>>>> Hello,
>>>>
>>>> A company I work with has many folders nested within subfolders,
>>>> within subfolders with really long folder names that when you go
>>>> all the way to the end exceed 255 characters. Robocopy, richtools,
>>>> etc all fail when copying these really long folder paths and file
>>>> names. Is there any utility I can run to correct these or at
>>>> least identify all of them? I need to copy a 4TB volume and it
>>>> keeps failing. I can't have the server offline for too long and I
>>>> can't wait for it to fail to fix all of them.
>>>>
>>>> Thanks
>>>>
>>> A small number of commands such as ntbackup.exe or robocopy.exe can
>>> cope with excessively long path names. To identify the culprits you
>>> can run this batch file:
>>>
>>> @echo off
>>> dir /s /b "d:\User Data" 1>nul 2>d:\Error.txt


From: Ace Fekay [MVP-DS, MCT] on
"boe" <boe_d(a)nospammyhotmail.com> wrote in message
news:hmf119$fb2$1(a)speranza.aioe.org...

I haven't tried it, but after a brief search (trying to nail down the right
search string), I found the following that may do the trick. I'm sure there
are others out there.

DelinvFile 4.04
Quoted: "DelinvFile is a Windows Utility that you can use to delete files or
folders and that you are not able to delete using the standard Windows
Delete function. A convenient User Interface is provided for selecting the
file or folder that you need to delete. You use the standard controls for
Drives, Folders, and Files to navigate to the Folder or File to be deleted.
Recent versions include a function to Scan for Invalid and Too-Long
Names...."
http://invalid.vista-files.org/
http://www.vista-files.org/programs/assistance-resources-for-computing-inc/delinvfile.html

I hope that helps.

Otherwise, I know you said Robocopy didn't work, but I thought it supports
and copies longer than valid name? I guess I stand corrected. But have you
tried RoboCopy's switches to copy the volume? Robocopy has a switch
("/256") that disables support for the longer folder names (MAX_PATH, or
>255) and filenames longer than 255 (I believe called MAX_LENGTH) and uses
the 8.3 name. Robocopy also, has a switch to force 8.3 (/fat). Unless you
haven't tried it, give it a whirl. Read more here:

Robocopy
http://technet.microsoft.com/en-us/library/cc733145(WS.10).aspx


--
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Please reply back to the newsgroup or forum for collaboration benefit among
responding engineers, and to help others benefit from your resolution.

Ace Fekay, MVP, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007, MCSE &
MCSA 2003/2000, MCSA Messaging 2003
Microsoft Certified Trainer
Microsoft MVP - Directory Services

If you feel this is an urgent issue and require immediate assistance, please
contact Microsoft PSS directly. Please check http://support.microsoft.com
for regional support phone numbers.

> I'm not sure if I should start a new thread but is there any similar
> command I can use to find invalid file names? We have a lot of mac users
> and I've seen a few invalid file names spaces at the beginning end, crazy
> punctuation - even saw files with weird space invader type characters.
>
> "Pegasus [MVP]" <news(a)microsoft.com> wrote in message
> news:uoKmjwMuKHA.652(a)TK2MSFTNGP05.phx.gbl...
>>
>> Thanks for the feedback. I think you will need to educate your users so
>> that they put their information into the files themselves rather than
>> into the file and folder names.
>>
>> "boe" <boe_d(a)nospammyhotmail.com> wrote in message
>> news:35AE00DA-F638-4113-B86B-EF9C89AEB3BF(a)microsoft.com...
>>> Thanks - I started your batch file a few minutes ago and it has already
>>> found 100 such directories. I have 4 TB to scan so it will take a
>>> while but this is VERY good to know.
>>>
>>> "Pegasus [MVP]" <news(a)microsoft.com> wrote in message
>>> news:#rZRC6LuKHA.732(a)TK2MSFTNGP06.phx.gbl...
>>>>
>>>>
>>>> "boe" <boe_d(a)nospammyhotmail.com> wrote in message
>>>> news:hmeg89$c9f$1(a)speranza.aioe.org...
>>>>> Hello,
>>>>>
>>>>> A company I work with has many folders nested within subfolders,
>>>>> within subfolders with really long folder names that when you go all
>>>>> the way to the end exceed 255 characters. Robocopy, richtools, etc
>>>>> all fail when copying these really long folder paths and file names.
>>>>> Is there any utility I can run to correct these or at least identify
>>>>> all of them? I need to copy a 4TB volume and it keeps failing. I
>>>>> can't have the server offline for too long and I can't wait for it to
>>>>> fail to fix all of them.
>>>>>
>>>>> Thanks
>>>>
>>>> A small number of commands such as ntbackup.exe or robocopy.exe can
>>>> cope with excessively long path names. To identify the culprits you can
>>>> run this batch file:
>>>>
>>>> @echo off
>>>> dir /s /b "d:\User Data" 1>nul 2>d:\Error.txt
>>>



From: boe on
Thanks - I thought robocopy was replaced by richcopy.

"Ace Fekay [MVP-DS, MCT]" <aceman(a)mvps.RemoveThisPart.org> wrote in message
news:OGEElFRuKHA.4636(a)TK2MSFTNGP06.phx.gbl...
> "boe" <boe_d(a)nospammyhotmail.com> wrote in message
> news:hmf119$fb2$1(a)speranza.aioe.org...
>
> I haven't tried it, but after a brief search (trying to nail down the
> right search string), I found the following that may do the trick. I'm
> sure there are others out there.
>
> DelinvFile 4.04
> Quoted: "DelinvFile is a Windows Utility that you can use to delete files
> or folders and that you are not able to delete using the standard Windows
> Delete function. A convenient User Interface is provided for selecting the
> file or folder that you need to delete. You use the standard controls for
> Drives, Folders, and Files to navigate to the Folder or File to be
> deleted. Recent versions include a function to Scan for Invalid and
> Too-Long Names...."
> http://invalid.vista-files.org/
> http://www.vista-files.org/programs/assistance-resources-for-computing-inc/delinvfile.html
>
> I hope that helps.
>
> Otherwise, I know you said Robocopy didn't work, but I thought it supports
> and copies longer than valid name? I guess I stand corrected. But have you
> tried RoboCopy's switches to copy the volume? Robocopy has a switch
> ("/256") that disables support for the longer folder names (MAX_PATH, or
> >255) and filenames longer than 255 (I believe called MAX_LENGTH) and uses
> the 8.3 name. Robocopy also, has a switch to force 8.3 (/fat). Unless you
> haven't tried it, give it a whirl. Read more here:
>
> Robocopy
> http://technet.microsoft.com/en-us/library/cc733145(WS.10).aspx
>
>
> --
> Ace
>
> This posting is provided "AS-IS" with no warranties or guarantees and
> confers no rights.
>
> Please reply back to the newsgroup or forum for collaboration benefit
> among responding engineers, and to help others benefit from your
> resolution.
>
> Ace Fekay, MVP, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007, MCSE &
> MCSA 2003/2000, MCSA Messaging 2003
> Microsoft Certified Trainer
> Microsoft MVP - Directory Services
>
> If you feel this is an urgent issue and require immediate assistance,
> please contact Microsoft PSS directly. Please check
> http://support.microsoft.com for regional support phone numbers.
>
>> I'm not sure if I should start a new thread but is there any similar
>> command I can use to find invalid file names? We have a lot of mac
>> users and I've seen a few invalid file names spaces at the beginning end,
>> crazy punctuation - even saw files with weird space invader type
>> characters.
>>
>> "Pegasus [MVP]" <news(a)microsoft.com> wrote in message
>> news:uoKmjwMuKHA.652(a)TK2MSFTNGP05.phx.gbl...
>>>
>>> Thanks for the feedback. I think you will need to educate your users so
>>> that they put their information into the files themselves rather than
>>> into the file and folder names.
>>>
>>> "boe" <boe_d(a)nospammyhotmail.com> wrote in message
>>> news:35AE00DA-F638-4113-B86B-EF9C89AEB3BF(a)microsoft.com...
>>>> Thanks - I started your batch file a few minutes ago and it has already
>>>> found 100 such directories. I have 4 TB to scan so it will take a
>>>> while but this is VERY good to know.
>>>>
>>>> "Pegasus [MVP]" <news(a)microsoft.com> wrote in message
>>>> news:#rZRC6LuKHA.732(a)TK2MSFTNGP06.phx.gbl...
>>>>>
>>>>>
>>>>> "boe" <boe_d(a)nospammyhotmail.com> wrote in message
>>>>> news:hmeg89$c9f$1(a)speranza.aioe.org...
>>>>>> Hello,
>>>>>>
>>>>>> A company I work with has many folders nested within subfolders,
>>>>>> within subfolders with really long folder names that when you go all
>>>>>> the way to the end exceed 255 characters. Robocopy, richtools, etc
>>>>>> all fail when copying these really long folder paths and file names.
>>>>>> Is there any utility I can run to correct these or at least identify
>>>>>> all of them? I need to copy a 4TB volume and it keeps failing. I
>>>>>> can't have the server offline for too long and I can't wait for it to
>>>>>> fail to fix all of them.
>>>>>>
>>>>>> Thanks
>>>>>
>>>>> A small number of commands such as ntbackup.exe or robocopy.exe can
>>>>> cope with excessively long path names. To identify the culprits you
>>>>> can run this batch file:
>>>>>
>>>>> @echo off
>>>>> dir /s /b "d:\User Data" 1>nul 2>d:\Error.txt
>>>>
>
>
>