RE: Problems running Win32's "net use" with system()

2002-03-15 Thread Francoys Crepeau
Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 16, 2002 00:49 To: [EMAIL PROTECTED] Subject: Re: Problems running Win32's "net use" with system() Francoys Crepeau wrote: > > Hi everyone! I hope someone can tell me what I'

Re: Problems running Win32's "net use" with system()

2002-03-15 Thread John W. Krahn
Francoys Crepeau wrote: > > Hi everyone! I hope someone can tell me what I'm doing wrong. Hello, I hope so too. > I'm running ActivePerl 5.6 on an NT4 (service pack 5) box. > > One of the things I have to do is to have a Perl script "map" a network > drive to a drive letter. > > When one manu

RE: Problems running Win32's "net use" with system()

2002-03-15 Thread Timothy Johnson
Maybe system() isn't the right way to go with this. Try using backticks (`net use * server\\share`) or use the Win32::Lanman modules NetShareAdd() function. My personal take on system() and backticks is that they should only be used when absolutely necessary. You can control what Perl doe