XCOPY

E

ECL

Hi, need help.

I'm getting this error message "Can't read file:
filename.txt" when command

xcopy c:\test\*.*
c:\test2 /d /s /a /f /exclude:\folder\filename.txt

Why is it so? Is there any others parameters I need to add
in this command?

I need this command to add in my batchfile to be able to
copy the newer file with archive attribute to other
directory except "filename.txt".

Any help would be great.

thanks in advance:)
 
J

Jerold Schulman

Hi, need help.

I'm getting this error message "Can't read file:
filename.txt" when command

xcopy c:\test\*.*
c:\test2 /d /s /a /f /exclude:\folder\filename.txt

Why is it so? Is there any others parameters I need to add
in this command?

I need this command to add in my batchfile to be able to
copy the newer file with archive attribute to other
directory except "filename.txt".

Any help would be great.

thanks in advance:)
From the help:

"/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings. Each string
should be in a separate line in the files. When any of the
strings match any part of the absolute path of the file to be
copied, that file will be excluded from being copied. For
example, specifying a string like \obj\ or .obj will exclude
all files underneath the directory obj or all files with the
.obj extension respectively."

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
E

ECL

thanks Jerold. I've done that already but receiving the
same error. Can you give me an example. Thanks again.
-----Original Message-----
Hi, need help.

I'm getting this error message "Can't read file:
filename.txt" when command

xcopy c:\test\*.*
c:\test2 /d /s /a /f /exclude:\folder\filename.txt

Why is it so? Is there any others parameters I need to add
in this command?

I need this command to add in my batchfile to be able to
copy the newer file with archive attribute to other
directory except "filename.txt".

Any help would be great.

thanks in advance:)
From the help:

"/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings. Each string
should be in a separate line in the files. When any of the
strings match any part of the absolute path of the file to be
copied, that file will be excluded from being copied. For
example, specifying a string like \obj\ or .obj will exclude
all files underneath the directory obj or all files with the
.obj extension respectively."

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
.
 
J

Jerold Schulman

The /Exlude: option seems to be broken, as I get the same error.

thanks Jerold. I've done that already but receiving the
same error. Can you give me an example. Thanks again.
-----Original Message-----
Hi, need help.

I'm getting this error message "Can't read file:
filename.txt" when command

xcopy c:\test\*.*
c:\test2 /d /s /a /f /exclude:\folder\filename.txt

Why is it so? Is there any others parameters I need to add
in this command?

I need this command to add in my batchfile to be able to
copy the newer file with archive attribute to other
directory except "filename.txt".

Any help would be great.

thanks in advance:)
From the help:

"/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings. Each string
should be in a separate line in the files. When any of the
strings match any part of the absolute path of the file to be
copied, that file will be excluded from being copied. For
example, specifying a string like \obj\ or .obj will exclude
all files underneath the directory obj or all files with the
.obj extension respectively."

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
.


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
B

Bob I

The /exclude function works here on Win2k SP4. Is the "filename.txt"
file plain text? (ANSI) It handled sub-directories with spaces in them
WITHOUT enclosing them in quotes. I dropped the exclude file in the root
also, so there may be a "path" problem. HTH

Jerold said:
The /Exlude: option seems to be broken, as I get the same error.

thanks Jerold. I've done that already but receiving the
same error. Can you give me an example. Thanks again.

-----Original Message-----
Hi, need help.

I'm getting this error message "Can't read file:
filename.txt" when command

xcopy c:\test\*.*
c:\test2 /d /s /a /f /exclude:\folder\filename.txt

Why is it so? Is there any others parameters I need to
add

in this command?

I need this command to add in my batchfile to be able to
copy the newer file with archive attribute to other
directory except "filename.txt".

Any help would be great.

thanks in advance:)


From the help:
"/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing
strings. Each string
should be in a separate line in the files.
When any of the
strings match any part of the absolute path
of the file to be
copied, that file will be excluded from
being copied. For
example, specifying a string like \obj\
or .obj will exclude
all files underneath the directory obj or
all files with the
.obj extension respectively."

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
.


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 

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

Similar Threads


Top