Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Water Lin
January 12, 2009, 6:44 am
rate this thread
Re: How can I access file on machine by address like \a_machine\pub\list
You need to _PASS_ username and password as argument to "net use ..."
when attaching the share as a drive. That is different from entering a
That depends upon what "the problem" is.
The most simple approach is to just include uid and pwd in the call to
"net use ..." in the script. Of course that would be in clear text and
therefore you need to make sure, that nobody but you has permissions to
read or execute the script.
Depending upon your situation this may or may not be enough security.
Other approaches include e.g. storing the credentials in a separate,
secured and/or encrypted file, providing the credentials manually upon
starting the script, having a different script attaching the drive,
attaching the drive manually and then running the automated script, ....
- » FAQ 3.26 Where can I learn about object-oriented Perl programming?
- — Next thread in » PERL Discussions
- » FAQ 1.15 Where can I get a list of Larry Wall witticisms?
- — Previous thread in » PERL Discussions