Re: What is wrong with this BAT File?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"RScotti" <rscotti1@xxxxxxxxxxxxxxxxxx> wrote in message
news:ktisp2ti4kuahpe584u3n0too2jcj8t0ls@xxxxxxx
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.

Lose the trailing backslashes.

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"

Good luck

Nepatsfan



.



Relevant Pages

  • What is wrong with this BAT File?
    ... 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. ... 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: xhtml encoding question
    ... strings as keys. ... The latter is exactly what I would have done, i.e. scan the dictionary for invalid values, in the spirit of not letting errors pass unnoticed. ... The result could be a structure that makes use of the fact that Unicode codepoints are < 22 bits and that makes the way from the elements of the source sequence to the according map entry as short as possible (I'm not sure if using codepoints or single-character strings is faster). ...
    (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)