PDA

View Full Version : Batch files help under winXP


Mike Musielski
April 19th 03, 04:49 PM
Since UNC paths are no longer supported how do you program a batch file
to copy files from one machine on the network to another? Or is there
now a better way than batch files for doing this?

I have a batch file that copies several files from several different
locations on the network to one computer on the network. It needs to be
done by a secretary who is not too computer litterate. The old batch
file was a simple one click method of accomplishing this.

I.E. copy \\computer1\c\temp\file1.doc e:\temp\file1.doc
copy \\computer1\c\temp\file1.doc e:\temp\file1.doc
copy \\computer1\c\temp\file2.doc e:\temp\file2.doc
copy \\computer1\d\temp\file3.doc e:\temp\file3.doc
copy \\computer1\e\temp\file4.doc e:\temp\file4.doc
copy \\computer1\f\temp\file5.doc e:\temp\file5.doc

Help please!

David Candy
April 19th 03, 06:40 PM
UNC is still supported. Where did you get that from.

Try
copy \\computer1\c\temp\file1.doc e:\temp\file1.doc
echo %errorlevel%

and see if it echo's a non 0, which is the error code. Most errors will =
be on the screen in english anyway.

If there is no english message use
net helpmsg <the number>
for a description of the error number.

--=20
http://www.g2mil.com/Apr2003.htm
http://prorev.com/forbesrussia.htm
---------------------------------------------------------------
David Candy
http://www.mvps.org/serenitymacros
---------------------------------------------------------------
"Mike Musielski" > wrote in message =
...
> Since UNC paths are no longer supported how do you program a batch =
file
> to copy files from one machine on the network to another? Or is there
> now a better way than batch files for doing this?
>=20
> I have a batch file that copies several files from several different
> locations on the network to one computer on the network. It needs to =
be
> done by a secretary who is not too computer litterate. The old batch
> file was a simple one click method of accomplishing this.
>=20
> I.E. copy \\computer1\c\temp\file1.doc e:\temp\file1.doc
> copy \\computer1\c\temp\file1.doc e:\temp\file1.doc
> copy \\computer1\c\temp\file2.doc e:\temp\file2.doc
> copy \\computer1\d\temp\file3.doc e:\temp\file3.doc
> copy \\computer1\e\temp\file4.doc e:\temp\file4.doc
> copy \\computer1\f\temp\file5.doc e:\temp\file5.doc
>=20
> Help please!
>=20

David Candy
April 19th 03, 06:40 PM
UNC is still supported. Where did you get that from.

Try
copy \\computer1\c\temp\file1.doc e:\temp\file1.doc
echo %errorlevel%

and see if it echo's a non 0, which is the error code. Most errors will =
be on the screen in english anyway.

If there is no english message use
net helpmsg <the number>
for a description of the error number.

--=20
http://www.g2mil.com/Apr2003.htm
http://prorev.com/forbesrussia.htm
---------------------------------------------------------------
David Candy
http://www.mvps.org/serenitymacros
---------------------------------------------------------------
"Mike Musielski" > wrote in message =
...
> Since UNC paths are no longer supported how do you program a batch =
file
> to copy files from one machine on the network to another? Or is there
> now a better way than batch files for doing this?
>=20
> I have a batch file that copies several files from several different
> locations on the network to one computer on the network. It needs to =
be
> done by a secretary who is not too computer litterate. The old batch
> file was a simple one click method of accomplishing this.
>=20
> I.E. copy \\computer1\c\temp\file1.doc e:\temp\file1.doc
> copy \\computer1\c\temp\file1.doc e:\temp\file1.doc
> copy \\computer1\c\temp\file2.doc e:\temp\file2.doc
> copy \\computer1\d\temp\file3.doc e:\temp\file3.doc
> copy \\computer1\e\temp\file4.doc e:\temp\file4.doc
> copy \\computer1\f\temp\file5.doc e:\temp\file5.doc
>=20
> Help please!
>=20

Google