Well, the book doesn't explain what the first parameter is. I got the module anyway, and its own documentation is better. But there are no examples. What's a CONNECTIBLE vs CONTAINER? etc.
Your example helps, e.g. only some of the possible fields in %NetResource are used. But I still don't know what the last parameter, $Connection or $Result for you, does. Your example uses TRUE/FALSE return and GetLastError for checking after the call, not this output parameter.
Keep in mind if the user and password are blank that says to keep it local to the machine you are accessing. I don't understand.
if you use this to disconnect and or allow for finding the share already mounted. I didn't parse that, either.
it wants an id and password which is bad since the password is plaintext. But if you are the sole user of the script and people won't see it....
Yes, I know the risks of having the password present in the script. In my application, it is uniquely not a problem! This is for my backup script. If you can access the files on this machine to read the script, you would not need to break into the backup machine.
In reply to Re: Re: Using Win32 network shares
by John M. Dlugosz
in thread Using Win32 network shares
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |