Hello all,

Question:
How can I use a while loop to map a drive letter to
multiple servers.  I would like to map an nt drive,
copy a file then unmap the drive and use the same
drive letter to map to a different server, copy the
file, disconnect and so on....

system ("net use f: \\\\la_sys01\\cmsopen");
system ("copy *.* $path");
system ("net use f: /delete");

Also, what other option do I have for executing system
commands besides using system?? I heard system is not
the best way to do it.

thanks, in advance,




=====
Peter Lemus
UNIX/NT Networks Engineer
[EMAIL PROTECTED]

--This world is too big for us to be alone.
--A wise man will be master of his mind a fool will be its slave.

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to