Problem with Xcopy

F

fg

Hi, I have a small batch file which makes some backups of my data. I
wrote it a few weeks ago and it worked apparently well. But now it
seems not to work any more, I get the following error message :

`xcopy' is not recognized as an internal or external command, operable
program or batch file.


the batch file has just some lines of command all like the following

xcopy C:\\SWP25SE\docs\ \\casfs1.bu.edu\Economics\fgourio\Tex /i /m /s
/y /c /v

does xcopy not work any more with windows XP? what is the problem?
thanks for your help

francois
 
G

Ghostrider

fg said:
Hi, I have a small batch file which makes some backups of my data. I
wrote it a few weeks ago and it worked apparently well. But now it
seems not to work any more, I get the following error message :

`xcopy' is not recognized as an internal or external command, operable
program or batch file.


the batch file has just some lines of command all like the following

xcopy C:\\SWP25SE\docs\ \\casfs1.bu.edu\Economics\fgourio\Tex /i /m /s
/y /c /v

does xcopy not work any more with windows XP? what is the problem?
thanks for your help

francois

The [direct] path to the location of the xcopy command is no longer
intact or the computer cannot get to it. To easily correct it, edit
the batch file to the following:

[d:]\[folder]\xcopy C:\\SWP25SE\docs\...etc., e.g.,

c:\dos\xcopy C:\\SWP25SE\docs\...etc.

where [d:]\ is the partition where the [folder] containing the xcopy
command resides and [folder] is the name of the folder or directory.
 
D

Dave Cohen

Ghostrider said:
Hi, I have a small batch file which makes some backups of my data. I
wrote it a few weeks ago and it worked apparently well. But now it
seems not to work any more, I get the following error message :

`xcopy' is not recognized as an internal or external command, operable
program or batch file.


the batch file has just some lines of command all like the following

xcopy C:\\SWP25SE\docs\ \\casfs1.bu.edu\Economics\fgourio\Tex /i /m /s
/y /c /v

does xcopy not work any more with windows XP? what is the problem?
thanks for your help

francois

The [direct] path to the location of the xcopy command is no longer
intact or the computer cannot get to it. To easily correct it, edit
the batch file to the following:

[d:]\[folder]\xcopy C:\\SWP25SE\docs\...etc., e.g.,

c:\dos\xcopy C:\\SWP25SE\docs\...etc.

where [d:]\ is the partition where the [folder] containing the xcopy
command resides and [folder] is the name of the folder or directory.

Well yes, but do a search for it then you can plug in the correct path.
On my winxp it shows up in i386 directory and system32. The latter is in
the path statement so I suppose that is the one that is used.
Dave Cohen
 
P

Pegasus \(MVP\)

fg said:
Hi, I have a small batch file which makes some backups of my data. I
wrote it a few weeks ago and it worked apparently well. But now it
seems not to work any more, I get the following error message :

`xcopy' is not recognized as an internal or external command, operable
program or batch file.


the batch file has just some lines of command all like the following

xcopy C:\\SWP25SE\docs\ \\casfs1.bu.edu\Economics\fgourio\Tex /i /m /s
/y /c /v

does xcopy not work any more with windows XP? what is the problem?
thanks for your help

francois

Two backslash errors. Instead of

C:\\SWP25SE\docs\ you should write:
C:\SWP25SE\docs
 
F

fg

Thanks to all for your feedback. I found the path for xcopy and it now
seems to work.

the instruction is
c:\windows\win32\xcopy C:\\SWPetc...

best
fr
 
P

Pegasus \(MVP\)

fg said:
Thanks to all for your feedback. I found the path for xcopy and it now
seems to work.

the instruction is
c:\windows\win32\xcopy C:\\SWPetc...

best
fr

You actually cured the symptoms, not the cause. xcopy.exe
should reside in the system32 directory, not in the win32
directory. Furthermore, the system32 directory must be
included in the path. What exactly do you see when you
open a Command Prompt and type this command:

path {Enter}
 
E

E. Barry Bruyea

I've never used "X-Copy", so I'll ask what some may think is a dumb
question; does X-Copy use Short or Long file names?
 
R

RJK

I can only spot xcopy.exe in my XP system32 directory, so perhaps MS
tidied it up !
There used to be a xcopy.exe and xcopy32.exe dos externals (in W98?) and one
had to use the xcopy32.exe to retain long filenames.
....then there's the highly acclaimed xxcopy.exe, (can't remember who
produced it), that was praised by lots of people - I tried it ages ago, to
copy a large number of directories and files, and it collapsed ! ...so
therefore I don't like it at all !!!


XP's xcopy /? [Enter]

Copies files and directory trees.

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
[/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
[/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z]
[/EXCLUDE:file1[+file2][+file3]...]

source Specifies the file(s) to copy.
destination Specifies the location and/or name of new files.
/A Copies only files with the archive attribute set,
doesn't change the attribute.
/M Copies only files with the archive attribute set,
turns off the archive attribute.
/D:m-d-y Copies files changed on or after the specified date.
If no date is given, copies only those files whose
source time is newer than the destination time.
/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.
/P Prompts you before creating each destination file.
/S Copies directories and subdirectories except empty ones.
/E Copies directories and subdirectories, including empty ones.
Same as /S /E. May be used to modify /T.
/V Verifies each new file.
/W Prompts you to press a key before copying.
/C Continues copying even if errors occur.
/I If destination does not exist and copying more than one file,
assumes that destination must be a directory.
/Q Does not display file names while copying.
/F Displays full source and destination file names while
copying.
/L Displays files that would be copied.
/G Allows the copying of encrypted files to destination that
does
not support encryption.
/H Copies hidden and system files also.
/R Overwrites read-only files.
/T Creates directory structure, but does not copy files. Does
not
include empty directories or subdirectories. /T /E includes
empty directories and subdirectories.
/U Copies only files that already exist in destination.
/K Copies attributes. Normal Xcopy will reset read-only
attributes.
/N Copies using the generated short names.
/O Copies file ownership and ACL information.
/X Copies file audit settings (implies /O).
/Y Suppresses prompting to confirm you want to overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to overwrite an
existing destination file.
/Z Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.

regards, Richard
 
P

Pegasus \(MVP\)

xxcopy32.exe is a DOS/Win98 tool. There is no room for
it in WinXP.

xxcopy.exe is an excellent tool that can be downloaded from
a number of sites. It is very stable.
 
K

Kerry Brown

fg said:
Thanks to all for your feedback. I found the path for xcopy and it now
seems to work.

the instruction is
c:\windows\win32\xcopy C:\\SWPetc...

best
fr

Something very odd is going on. That is an unusual place for xcopy to
reside. Especially if it changed suddenly. I would suspect a virus or
malware. You should examine the computer very carefully for other signs of
malware. As Pegasus also requests please post the results of typing "path"
without the quotes in a cmd prompt.
 

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