What is wrong with this BAT File?



Hi,
I Have a problem with this bat file the two strings with the ** don't work and I can't see what is wrong with them.
I also included the two "Invalid path"errors that they produced.
Any help would really be appreciated. It's really driving me crazy!

@echo off
xcopy /s /y /d /h /c "C:\Program Files\Agent" "J:\Agent\"
xcopy /s /y /d /h /c "C:\Program Files\Agent" "C:\Documents and settings\HP_Administrator\My Documents\Agent\"
**>xcopy /s /y /d /h /c "C:\Documents and settings\HP_Administrator\My Documents\Documents\" "J:\My Documents\"
**>xcopy /s /y /d /h /c "C:\Documents and settings\HP_Administrator\My Documents\My Pictures\" "J:\My Pictures\"
xcopy /s /y /d /h /c "C:\Documents and settings\HP_Administrator\Cookies" "J:\Cookies\"
xcopy /s /y /d /h /c "C:\Documents and settings\HP_Administrator\Favorites" "J:\Favorites\"
xcopy /s /y /d /h /c "C:\Documents and settings\HP_Administrator\My Documents\Backup" "J:\Backup\"
xcopy /s /y /d /h /c "C:\Documents and settings\HP_Administrator\My Documents\Backup" "J:\ABackup\"

This is the errors the ones with the **:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\HP_Administrator>b
C:\Program Files\Agent\Data\MWORDS.DAT
C:\Program Files\Agent\Data\MWORDS.IDX
C:\Program Files\Agent\Data\tasklog.xml
3 File(s) copied
C:\Program Files\Agent\Data\MWORDS.DAT
C:\Program Files\Agent\Data\MWORDS.IDX
C:\Program Files\Agent\Data\tasklog.xml
3 File(s) copied
**>Invalid path
**>0 File(s) copied
**>Invalid path
**>0 File(s) copied
C:\Documents and settings\HP_Administrator\Cookies\index.dat
Access denied
0 File(s) copied
0 File(s) copied
0 File(s) copied
0 File(s) copied

C:\Documents and Settings\HP_Administrator>

Have a good day,
RScotti

remove "nospam" in order to email me.

.



Relevant Pages

  • Re: What is wrong with this BAT File?
    ... I Have a problem with this bat file the two strings with the ... also included the two "Invalid path"errors that they ... remove "nospam" in order to email me. ...
    (microsoft.public.windowsxp.general)
  • Re: What is wrong with this BAT File?
    ... I Have a problem with this bat file the two strings with the ** don't work ... remove "nospam" in order to email me. ... This syntax is also OK: ...
    (microsoft.public.windowsxp.general)
  • Re: Help required to read and print lines based on the type of first character
    ... In the above case, "accurate, unambigous and well-expressed specs" are almost pseudocode. ... print "an invalid line" ... I'd say that the most "tricky" part is c., since there's more than one possible solution, but since it's about strings, looking for what features Python strings has to offer, and trying them out in the interactive interpreter should solve the problem very quickly. ...
    (comp.lang.python)
  • Re: Making a string, file-safe (file-encode??)
    ... I know that there is something like URLencodethat encodes strings ... is not invalid on all system, ... Daniel Pitts' Tech Blog: ...
    (comp.lang.java.programmer)
  • Re: About createFile
    ... handle.But the Filename is displaying correctly.can any one ... TEXTshould be used to declare unicode strings inside your code. ... (the reply address of this message is invalid) ... (l'indirizzo di reply di questo messaggio non è ...
    (microsoft.public.windowsce.platbuilder)

Loading