Bob, 

> -----Original Message-----
> From: [EMAIL PROTECTED] On Behalf Of Bob Woodward
> Sent: Friday, 24 March 2006 05:36
> To: Ray Buchner; u2-users@listserver.u2ug.org
> Subject: RE: [U2] UV 10 and Windows 2003 Mapped Drives
[snip]
> My process isn't perfect but before I do the NET USE command, I use
the 
> following method to branch around if the drive letter already exists:
> 
> if exist z:\nul then goto z.is.there
> net use x: \\127.0.0.1\sharename password /user:DOMANE\USERID
/persistent:no 
>:z.is.there
> 
> Be sure to put in the valid DOMAIN\USERID and password.  

Hmm, so we now have a userID & password embedded in plain text in a
Basic program.
And we can't change the password without changing the source code
recompiling the program.
If this is the only way of doing this, I strongly recommend using
ENCRYPT() and storing the encrypted password on disk somewhere.
This has two advantages:
+       The plain-text password only exists briefly in memory, 
        not permanently on disk
+       You can change the encrypted password on disk with a utility 
        program and avoid recompiling

HTH

Mike

[snip]
> 
> HTH's
> 
> BobW
The information contained in this Internet Email message is intended
for the addressee only and may contain privileged information, but not
necessarily the official views or opinions of the New Zealand Defence Force.
If you are not the intended recipient you must not use, disclose, copy or 
distribute this message or the information in it.

If you have received this message in error, please Email or telephone
the sender immediately.
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to