Just my $.02, but I would recommend against setting the password within the
script. You can always pass it as an argument. Two reasons: 1)Someone may
read the source 2)If you change the password on the domain and forget to
change your script, you can lock out the account.
Also, I would recomme
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
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
Ben writes..
>If I have a function which is returning a file name in a format like:
>/PROGRA~1/RLDSOF~1/APPLIC~1/remote/def
>
>How can I translate this to the "real" file name? e.g.
>"PROGRA~1" should be "Program Files", etc.
print Win32::GetLongPathName(
'/PROGRA~1/RLDSOF~1/APPLIC~1/remote/
If I have a function which is returning a file name in a format like:
/PROGRA~1/RLDSOF~1/APPLIC~1/remote/def
How can I translate this to the "real" file name? e.g. "PROGRA~1" should be
"Program Files", etc.
**
The informat
For the WINS/DNS part, have a look at the netsh command that comes with win2k.
For Novell client? That may be a tough one. I haven't been involved with Novell for a
long time, but if memory serves, you had to run a Novell supplied utility to
completely remove the Netware client from a windows
Hi all,
I'm trying to write a script (preferably Perl) so that it can automatically remove
certain hard coded DNS/WINS entries from the TCP/IP configs of a Windows 2K Pro
client. I'm also trying to un-install the Novell Client from the same machines. I
looked around (Technet and Platform SDK)
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
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
I have a LAN consisting of all Windows 2000 computers connected in a
peer-to-peer network. There is no domain controller etc.
I am trying to write a program to access some files on another computer but
I need to log in to that computer first. I can connect manually using
Windows Explorer but I w
10 matches
Mail list logo