C:\batch>agentvista.bat
C:\batch>
C:\batch>xcopy c:\utils\agent \\vista-pc:gene\c\backup\agent /s /e /q
/y /i
This is the error message
Invalid path - \\vista-pc:gene\c\
The network path was not found.
0 File(s) copied
Try removing the : character from the computername.
*** What about using double quotation marks around that part of the
line?
Richard Bonner
http://www.chebucto.ca/~ak621/DOS/
Do I need the user account (gene)??
Which part of the line do you need the quotes in??
>
> Richard Bonner
>http://www.chebucto.ca/~ak621/DOS/
Is that what it is - the user accountname doesn't go there.
You'd use the net use command to create a drive letter to access the share
with the user credentials - see:
NET USE /?
and then xcopy to the drive letter.
I doubt that that syntax works in ME or XP, or at least it is unknown to
me.
> >> On Mon, 14 Jul 2008 12:50:24 GMT, nj...@eclipse.net (gene martinez) wrote:
> >> >I have the following batch file that gives the error listed below. I
> >> >don't know what is wrong. I've used this on ME and XP boxes and it
> >> >works.
> >> >
> >> >C:\batch>agentvista.bat
> >> >
> >> >C:\batch>
> >> >C:\batch>xcopy c:\utils\agent \\vista-pc:gene\c\backup\agent /s /e /q
> >> >/y /i
> >> >
> >> >
> >> >This is the error message
> >> >
> >> >Invalid path - \\vista-pc:gene\c\
> >> >The network path was not found.
> >> > 0 File(s) copied
> >*** What about using double quotation marks around that part of the
> >line?
> Which part of the line do you need the quotes in??
*** I don't know if it will work because I have not used Windows in
years, but I'd say:
xcopy c:\utils\agent "\\vista-pc:gene\c\backup\agent" /s /e /q
Richard Bonner
http://www.chebucto.ca/~ak621/DOS/
I'll give it a try, Thanks
> Richard Bonner
>http://www.chebucto.ca/~ak621/DOS/
LOL, why do I have this vision of a scuba diver giving preperation
instructions to a skydiver?
--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)
> LOL, why do I have this vision of a scuba diver giving preperation
> instructions to a skydiver?
> --
> Todd Vargo
*** LOL. Diving is diving, Todd - it's just in different media. (-:
Richard Bonner
http://www.chebucto.ca/~ak621/DOS/
Except that here, unless I am mistaken, your advice has no merit and will
just confuse the OP. The username is *never* part of the path.
*** I had originally phrased it as a question as to whether adding
quotes was a valid solution. No one responded to say if quotes would work
or not. When the original poster responded, I stated that I did not know
if it would work.
Still, your point has significance. (-:
> The username is *never* part of the path.
*** OK. Thanks for the tip.
Richard Bonner
http://www.chebucto.ca/~ak621/DOS/
Type "net view" and make sure you have access to the target
computer and that you are entering the computer name correctly.
Ben
"Ben Myers" <benj...@REMOVEmindspring.com> wrote:
>"gene martinez" <nj...@eclipse.net> wrote in message =