Another way which might provide better security would be to use either xml or a database file if they're supported in MapBasic because both of these have built in security and using the database would make it very easy to edit the user lists whilst keeping the security restrictions. Please note this is just an idea and I haven't coded anything like this is MapBasic before. Mike
"Driver, Greg 9434" <[EMAIL PROTECTED]> wrote: James, One way to do it would be to have a text or '.ini' file that listed all the user names allowed to run the mbx. When your MapBasic program is run it could retrieve the current user name (I've got the code to do this if you need it) and then check this against those in the text/.ini file and allow access if it's in the list. It's not totally fool-proof as a smart user could edit the text/.ini file to give themselves access. As an alternative you could hard-code the user names in the MapBasic program, but that means having to re-compile every time you wanted to alter the usernames list. You might also be able to restrict access to the mbx if you located it on a server and then set the permissions for the folder. Greg Driver -----Original Message----- From: James Stott [mailto:[EMAIL PROTECTED] Sent: 12 July 2005 11:27 To: [email protected] Subject: MI-L Restricting User Access All, I was wondering whether it is possible to restrict the users that can run a mapbasic application. I am looking to only let users that have been specified use the program. Is this at all possible? Regards James --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 17099 Internet communications are not secure and therefore Surrey Police does not accept legal responsibility for the contents of this message. This email and any attachments may be confidential. They may contain privileged information and are intended for the named addressee (s) only. They must not be distributed without our consent. If you are not the intended recipient, please notify us immediately and delete the message and any attachments from your computer, do not disclose, distribute, or retain this email or any part of it. Unless expressly stated, opinions in this email are those of the individual sender, and not of Surrey Police. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. Surrey Police reserves the right to monitor all email communications through their networks. --------------------------------- Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail
