Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

batch file too vista pc error

0 views
Skip to first unread message

gene martinez

unread,
Jul 14, 2008, 8:50:24 AM7/14/08
to

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


foxidrive

unread,
Jul 14, 2008, 1:17:29 PM7/14/08
to

Try removing the : character from the computername.

Richard Bonner

unread,
Jul 14, 2008, 2:52:15 PM7/14/08
to
foxidrive (got...@woohoo.invalid) wrote:

*** What about using double quotation marks around that part of the
line?

Richard Bonner
http://www.chebucto.ca/~ak621/DOS/

gene martinez

unread,
Jul 14, 2008, 4:03:09 PM7/14/08
to
foxidrive <got...@woohoo.invalid> wrote:

Do I need the user account (gene)??

gene martinez

unread,
Jul 14, 2008, 4:04:15 PM7/14/08
to
ak...@chebucto.ns.ca (Richard Bonner) wrote:

Which part of the line do you need the quotes in??

>
> Richard Bonner
>http://www.chebucto.ca/~ak621/DOS/

foxidrive

unread,
Jul 14, 2008, 4:46:06 PM7/14/08
to

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.

Richard Bonner

unread,
Jul 15, 2008, 7:16:57 AM7/15/08
to
gene martinez (nj...@eclipse.net) wrote:
> ak...@chebucto.ns.ca (Richard Bonner) wrote:

> >> 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/

gene martinez

unread,
Jul 15, 2008, 6:30:41 PM7/15/08
to
ak...@chebucto.ns.ca (Richard Bonner) wrote:


I'll give it a try, Thanks

> Richard Bonner
>http://www.chebucto.ca/~ak621/DOS/

Todd Vargo

unread,
Jul 15, 2008, 8:48:50 PM7/15/08
to
gene martinez wrote:

> Richard Bonner wrote:
>> *** 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
>
>
> I'll give it a try, Thanks

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)

Richard Bonner

unread,
Jul 16, 2008, 8:02:44 AM7/16/08
to
Todd Vargo (tlv...@sbcglobal.netz) wrote:
> gene martinez wrote:
> > Richard Bonner wrote:
> >> *** 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
> >
> >
> > I'll give it a try, Thanks

> 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/

foxidrive

unread,
Jul 16, 2008, 10:52:31 AM7/16/08
to

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.

Richard Bonner

unread,
Jul 17, 2008, 8:30:28 AM7/17/08
to

*** 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/

Ben Myers

unread,
Jul 19, 2008, 8:41:32 AM7/19/08
to
"gene martinez" <nj...@eclipse.net> wrote in message news:487bb115...@news.netcarrier.net...
<snip>

> >> >This is the error message
> >> >Invalid path - \\vista-pc:gene\c\
> >> >The network path was not found.
> >> > 0 File(s) copied

Type "net view" and make sure you have access to the target
computer and that you are entering the computer name correctly.

Ben

gene martinez

unread,
Jul 19, 2008, 1:12:09 PM7/19/08
to
Thanks, trying it as I type.. :)

"Ben Myers" <benj...@REMOVEmindspring.com> wrote:

>"gene martinez" <nj...@eclipse.net> wrote in message =

0 new messages