Simple copy but getting error

H

Harrison Midkiff

Hello:

I need to copy 250 GB of date from a network drive to a USB hard drive. I
am using the normal copy/paste technique, but I am hitting a problem. The
copy goes fine until it gets to a problem file then I get an error message
"Cannot remove folder [NAME_OF_FILE]: The filename or extension is too
long". I tried doing a xcopy and ran into even more problems with the
syntax. The network share is on a Windows 2003 server.

Does anyone know of an technique to force this? Any help or advice would be
greatly appreciated.

Harrison Midkiff
 
P

Pegasus \(MVP\)

Harrison Midkiff said:
Hello:

I need to copy 250 GB of date from a network drive to a USB hard drive. I
am using the normal copy/paste technique, but I am hitting a problem. The
copy goes fine until it gets to a problem file then I get an error message
"Cannot remove folder [NAME_OF_FILE]: The filename or extension is too
long". I tried doing a xcopy and ran into even more problems with the
syntax. The network share is on a Windows 2003 server.

Does anyone know of an technique to force this? Any help or advice would be
greatly appreciated.

Harrison Midkiff

Let's have a look at your xcopy syntax!
 
H

Harrison Midkiff

Thanks for replying to my post.

In order to do this, this is what I did. I want to copy the 250 GB to a USB
hard drive attached to my computer. I created a shared folder on it and
gave my account full permissions to the folder. This was my syntax:

xcopy d:\data \\COMPUTER_NAME\data /E /C /G /H /Y

Any help would be great.



Pegasus (MVP) said:
Harrison Midkiff said:
Hello:

I need to copy 250 GB of date from a network drive to a USB hard drive.
I
am using the normal copy/paste technique, but I am hitting a problem.
The
copy goes fine until it gets to a problem file then I get an error
message
"Cannot remove folder [NAME_OF_FILE]: The filename or extension is too
long". I tried doing a xcopy and ran into even more problems with the
syntax. The network share is on a Windows 2003 server.

Does anyone know of an technique to force this? Any help or advice would be
greatly appreciated.

Harrison Midkiff

Let's have a look at your xcopy syntax!
 
P

Pegasus \(MVP\)

Some comments:
- What is the /G switch for? My version of xcopy.exe has no
such switch!
- If you get a "path too long" error message then you must
reduce the total length of path+file name to less than 250
characters. Place your information into your files, not into
the file names! You may have to apply this trick to access
folders that are located too deep inside your directory structure:

subst x: "d:\Data\Some Folder\Some SubFolder\Some SubSubFolder"

You can now manipulate your excessively long file/folder names
on drive X:.


Harrison Midkiff said:
Thanks for replying to my post.

In order to do this, this is what I did. I want to copy the 250 GB to a USB
hard drive attached to my computer. I created a shared folder on it and
gave my account full permissions to the folder. This was my syntax:

xcopy d:\data \\COMPUTER_NAME\data /E /C /G /H /Y

Any help would be great.



Pegasus (MVP) said:
Harrison Midkiff said:
Hello:

I need to copy 250 GB of date from a network drive to a USB hard drive.
I
am using the normal copy/paste technique, but I am hitting a problem.
The
copy goes fine until it gets to a problem file then I get an error
message
"Cannot remove folder [NAME_OF_FILE]: The filename or extension is too
long". I tried doing a xcopy and ran into even more problems with the
syntax. The network share is on a Windows 2003 server.

Does anyone know of an technique to force this? Any help or advice
would
be
greatly appreciated.

Harrison Midkiff

Let's have a look at your xcopy syntax!
 
H

Harrison Midkiff

Thanks for replying to my post again.

The /G is Allows the copying of encrypted files to destination that does not
support encryption. I added it as a fail safe so to speak. I really want
to avoid reducing the path because the data is an archive. Any other
suggestions. I am going to check the script center next to see if there is
anything there.


Pegasus (MVP) said:
Some comments:
- What is the /G switch for? My version of xcopy.exe has no
such switch!
- If you get a "path too long" error message then you must
reduce the total length of path+file name to less than 250
characters. Place your information into your files, not into
the file names! You may have to apply this trick to access
folders that are located too deep inside your directory structure:

subst x: "d:\Data\Some Folder\Some SubFolder\Some SubSubFolder"

You can now manipulate your excessively long file/folder names
on drive X:.


Harrison Midkiff said:
Thanks for replying to my post.

In order to do this, this is what I did. I want to copy the 250 GB to a USB
hard drive attached to my computer. I created a shared folder on it and
gave my account full permissions to the folder. This was my syntax:

xcopy d:\data \\COMPUTER_NAME\data /E /C /G /H /Y

Any help would be great.



Pegasus (MVP) said:
Hello:

I need to copy 250 GB of date from a network drive to a USB hard
drive.
I
am using the normal copy/paste technique, but I am hitting a problem.
The
copy goes fine until it gets to a problem file then I get an error
message
"Cannot remove folder [NAME_OF_FILE]: The filename or extension is too
long". I tried doing a xcopy and ran into even more problems with the
syntax. The network share is on a Windows 2003 server.

Does anyone know of an technique to force this? Any help or advice would
be
greatly appreciated.

Harrison Midkiff



Let's have a look at your xcopy syntax!
 
V

Vincent Xu [MSFT]

Hi,

I suggest you use "subst <drive letter> <path> to create a virtual disk.

e.g.: to share a folder c:\test as V drive use
subst v: c:\test
this will share it as a virtual V drive
Also to delete the mapping use subst v: /d


Hope this helps.


Best regards,

Vincent Xu
Microsoft Online Partner Support

======================================================
Get Secure! - www.microsoft.com/security
======================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others
may learn and benefit from this issue.
======================================================
This posting is provided "AS IS" with no warranties,and confers no rights.
======================================================



--------------------
From: "Harrison Midkiff" <[email protected]>
References: <[email protected]>
<[email protected]>
Subject: Re: Simple copy but getting error
Date: Wed, 12 Apr 2006 20:56:43 -0400
Lines: 77
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
Message-ID: <O#[email protected]>
Newsgroups: microsoft.public.win2000.general
NNTP-Posting-Host: 117-120.8-67.tampabay.res.rr.com 67.8.120.117
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP04.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.win2000.general:201081
X-Tomcat-NG: microsoft.public.win2000.general

Thanks for replying to my post again.

The /G is Allows the copying of encrypted files to destination that does not
support encryption. I added it as a fail safe so to speak. I really want
to avoid reducing the path because the data is an archive. Any other
suggestions. I am going to check the script center next to see if there is
anything there.


Pegasus (MVP) said:
Some comments:
- What is the /G switch for? My version of xcopy.exe has no
such switch!
- If you get a "path too long" error message then you must
reduce the total length of path+file name to less than 250
characters. Place your information into your files, not into
the file names! You may have to apply this trick to access
folders that are located too deep inside your directory structure:

subst x: "d:\Data\Some Folder\Some SubFolder\Some SubSubFolder"

You can now manipulate your excessively long file/folder names
on drive X:.


Thanks for replying to my post.

In order to do this, this is what I did. I want to copy the 250 GB to a
USB
hard drive attached to my computer. I created a shared folder on it and
gave my account full permissions to the folder. This was my syntax:

xcopy d:\data \\COMPUTER_NAME\data /E /C /G /H /Y

Any help would be great.




Hello:

I need to copy 250 GB of date from a network drive to a USB hard
drive.
I
am using the normal copy/paste technique, but I am hitting a problem.
The
copy goes fine until it gets to a problem file then I get an error
message
"Cannot remove folder [NAME_OF_FILE]: The filename or extension is too
long". I tried doing a xcopy and ran into even more problems with the
syntax. The network share is on a Windows 2003 server.

Does anyone know of an technique to force this? Any help or advice
would
be
greatly appreciated.

Harrison Midkiff



Let's have a look at your xcopy syntax!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top