RE: Login to peer-to-peer network computer

2003-01-23 Thread Timothy Johnson
recommend using a module rather than shelling out to add the share. It is usually easier to check for mistakes and/or troubleshoot. -Original Message- From: King, Jason G [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 6:05 PM To: Perl Win32 Admin Messages Subject: RE: Login to peer

RE: Login to peer-to-peer network computer

2003-01-23 Thread King, Jason G
John writes .. >If the machines are not on the domain, you will have to log in >first. Let us assume there is no shares but you need access to >files in various directories. You need to tell the machine who >you are first by doing this: >net use \\frank\c$ /User:frank\Administrator > >It will t

RE: Login to peer-to-peer network computer

2003-01-23 Thread John Serink
You can so this from a batch file just as easily as from perl. If you are copying files from a share and all the machines are on the same domain, you don't need to log it. If the machine's name is frank and the share is bob, they the syntax is: xcopy *.* \\frank\bob. If the machines are not on

Re: Login to peer-to-peer network computer

2003-01-23 Thread Patrick J. LoPresti
The easiest way I know is to use the MapNetworkDrive method from Windows Script Host: http://msdn.microsoft.com/library/en-us/script56/html/wsmthmapnetworkdrive.asp Below is a sample Perl script which invokes this method. (I have sent this here before, but it is short so what the heck.) You i

RE: Login to peer-to-peer network computer

2003-01-23 Thread Timothy Johnson
Check out the Win32::FileOp module. You can use it to map a drive. I believe you can find it at jenda's repository. http://jenda.krynicky.cz/perl -Original Message- From: Valerie Kramer [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 12:27 PM To: Perl Win32 Admin Messages Su