Jump to content

Copy folder with long file names


Recommended Posts

Guest dennist
Posted

I want to copy a folder from my external HD to my harddisk.

It won't work because of long file names. It are to much files to change the

names.

Zip or Rar won't work.

Any suggestions?

  • Replies 6
  • Created
  • Last Reply
Guest Pegasus \(MVP\)
Posted

Re: Copy folder with long file names

 

 

"dennist" <dennist@discussions.microsoft.com> wrote in message

news:CEAB146D-1FEF-4A77-8C10-8BA1FBA55A3E@microsoft.com...

>I want to copy a folder from my external HD to my harddisk.

> It won't work because of long file names. It are to much files to change

> the

> names.

> Zip or Rar won't work.

> Any suggestions?

 

You need to create a drive letter that points to the middle of

your excessively long path, either as a substituted drive or as

a shared drive:

 

- Click Start / run / cmd {OK}

- Type either of these commands:

subst Q: "c:\documents and settings\dennist\some long folder name"

net use Q: "\\%ComputerName%\C$\documents and settings\dennist\some long

folder name"

 

You can now copy your files from drive Q:. In future you

should put your information INTO each document, not into

the path or document name.

Guest Shankomatic
Posted

Re: Copy folder with long file names

 

Look at Robocopy. It will get around long file paths and it is free...

 

http://www.microsoft.com/technet/technetmag/issues/2006/11/UtilitySpotlight/

 

(You don't have to use in on 2003 Server)

 

"Pegasus (MVP)" wrote:

>

> "dennist" <dennist@discussions.microsoft.com> wrote in message

> news:CEAB146D-1FEF-4A77-8C10-8BA1FBA55A3E@microsoft.com...

> >I want to copy a folder from my external HD to my harddisk.

> > It won't work because of long file names. It are to much files to change

> > the

> > names.

> > Zip or Rar won't work.

> > Any suggestions?

>

> You need to create a drive letter that points to the middle of

> your excessively long path, either as a substituted drive or as

> a shared drive:

>

> - Click Start / run / cmd {OK}

> - Type either of these commands:

> subst Q: "c:\documents and settings\dennist\some long folder name"

> net use Q: "\\%ComputerName%\C$\documents and settings\dennist\some long

> folder name"

>

> You can now copy your files from drive Q:. In future you

> should put your information INTO each document, not into

> the path or document name.

>

>

>

Guest Pegasus \(MVP\)
Posted

Re: Copy folder with long file names

 

Robocopy is a nice tool but unfortunately it won't resolve

the long path name issue.

 

 

"Shankomatic" <Shankomatic@discussions.microsoft.com> wrote in message

news:5E9FA18A-2B85-484E-A67A-20192B2B860C@microsoft.com...

> Look at Robocopy. It will get around long file paths and it is free...

>

> http://www.microsoft.com/technet/technetmag/issues/2006/11/UtilitySpotlight/

>

> (You don't have to use in on 2003 Server)

>

> "Pegasus (MVP)" wrote:

>

>>

>> "dennist" <dennist@discussions.microsoft.com> wrote in message

>> news:CEAB146D-1FEF-4A77-8C10-8BA1FBA55A3E@microsoft.com...

>> >I want to copy a folder from my external HD to my harddisk.

>> > It won't work because of long file names. It are to much files to

>> > change

>> > the

>> > names.

>> > Zip or Rar won't work.

>> > Any suggestions?

>>

>> You need to create a drive letter that points to the middle of

>> your excessively long path, either as a substituted drive or as

>> a shared drive:

>>

>> - Click Start / run / cmd {OK}

>> - Type either of these commands:

>> subst Q: "c:\documents and settings\dennist\some long folder name"

>> net use Q: "\\%ComputerName%\C$\documents and settings\dennist\some long

>> folder name"

>>

>> You can now copy your files from drive Q:. In future you

>> should put your information INTO each document, not into

>> the path or document name.

>>

>>

>>

Guest Shankomatic
Posted

Re: Copy folder with long file names

 

Robocopy.exe

Robust File Copy Utility

Version XP010

•Copy very long path names (longer that 256 characterfs).

Previous versions of Robocopy would fail to copy any pathname longer than

256 characters. The program has now been enhanced to handle pathnames of any

length, up to the internal Windows limit of nearlt 32,000 characters.

 

 

 

 

"Pegasus (MVP)" wrote:

> Robocopy is a nice tool but unfortunately it won't resolve

> the long path name issue.

>

>

> "Shankomatic" <Shankomatic@discussions.microsoft.com> wrote in message

> news:5E9FA18A-2B85-484E-A67A-20192B2B860C@microsoft.com...

> > Look at Robocopy. It will get around long file paths and it is free...

> >

> > http://www.microsoft.com/technet/technetmag/issues/2006/11/UtilitySpotlight/

> >

> > (You don't have to use in on 2003 Server)

> >

> > "Pegasus (MVP)" wrote:

> >

> >>

> >> "dennist" <dennist@discussions.microsoft.com> wrote in message

> >> news:CEAB146D-1FEF-4A77-8C10-8BA1FBA55A3E@microsoft.com...

> >> >I want to copy a folder from my external HD to my harddisk.

> >> > It won't work because of long file names. It are to much files to

> >> > change

> >> > the

> >> > names.

> >> > Zip or Rar won't work.

> >> > Any suggestions?

> >>

> >> You need to create a drive letter that points to the middle of

> >> your excessively long path, either as a substituted drive or as

> >> a shared drive:

> >>

> >> - Click Start / run / cmd {OK}

> >> - Type either of these commands:

> >> subst Q: "c:\documents and settings\dennist\some long folder name"

> >> net use Q: "\\%ComputerName%\C$\documents and settings\dennist\some long

> >> folder name"

> >>

> >> You can now copy your files from drive Q:. In future you

> >> should put your information INTO each document, not into

> >> the path or document name.

> >>

> >>

> >>

>

>

>

Guest Pegasus \(MVP\)
Posted

Re: Copy folder with long file names

 

Aha! The version of robocopy is essential - glad you

pointed it out in your second reply.

 

 

"Shankomatic" <Shankomatic@discussions.microsoft.com> wrote in message

news:5F83D27D-AFDD-43D6-A6DE-D956B1A273E3@microsoft.com...

> Robocopy.exe

> Robust File Copy Utility

> Version XP010

> .Copy very long path names (longer that 256 characterfs).

> Previous versions of Robocopy would fail to copy any pathname longer than

> 256 characters. The program has now been enhanced to handle pathnames of

> any

> length, up to the internal Windows limit of nearlt 32,000 characters.

>

>

>

>

> "Pegasus (MVP)" wrote:

>

>> Robocopy is a nice tool but unfortunately it won't resolve

>> the long path name issue.

>>

>>

>> "Shankomatic" <Shankomatic@discussions.microsoft.com> wrote in message

>> news:5E9FA18A-2B85-484E-A67A-20192B2B860C@microsoft.com...

>> > Look at Robocopy. It will get around long file paths and it is free...

>> >

>> > http://www.microsoft.com/technet/technetmag/issues/2006/11/UtilitySpotlight/

>> >

>> > (You don't have to use in on 2003 Server)

>> >

>> > "Pegasus (MVP)" wrote:

>> >

>> >>

>> >> "dennist" <dennist@discussions.microsoft.com> wrote in message

>> >> news:CEAB146D-1FEF-4A77-8C10-8BA1FBA55A3E@microsoft.com...

>> >> >I want to copy a folder from my external HD to my harddisk.

>> >> > It won't work because of long file names. It are to much files to

>> >> > change

>> >> > the

>> >> > names.

>> >> > Zip or Rar won't work.

>> >> > Any suggestions?

>> >>

>> >> You need to create a drive letter that points to the middle of

>> >> your excessively long path, either as a substituted drive or as

>> >> a shared drive:

>> >>

>> >> - Click Start / run / cmd {OK}

>> >> - Type either of these commands:

>> >> subst Q: "c:\documents and settings\dennist\some long folder name"

>> >> net use Q: "\\%ComputerName%\C$\documents and settings\dennist\some

>> >> long

>> >> folder name"

>> >>

>> >> You can now copy your files from drive Q:. In future you

>> >> should put your information INTO each document, not into

>> >> the path or document name.

>> >>

>> >>

>> >>

>>

>>

>>

Posted

Re: Copy folder with long file names

 

=?Utf-8?B?ZGVubmlzdA==?= wrote:

>

> I want to copy a folder from my external HD to my harddisk.

> It won't work because of long file names. It are to much files to change the

> names.

 

IN the future keep your file names short. I have run into problems

saving my daughters mp3's with long file names to cd. Best to keep

shorter file names.

 

 

--

http://www.bootdisk.com/


×
×
  • Create New...