EddyB Posted June 17, 2003 Posted June 17, 2003 Hi all, Just a quick question Rather than using the menu item Application Preferences to change the Username I was hoping to set up a global field which when scripted would set the current username to whatever was in the global field. I cannot find the set CurrentUsername function anywhere, does anyone know a way to do this please? I'm on FM 6 on Win2K Thanks all Ed.
cjaeger Posted June 17, 2003 Posted June 17, 2003 you can. write a batch file which changes the apropriate key in windows registry.
EddyB Posted June 17, 2003 Author Posted June 17, 2003 OK Christian you have officially scared me now! Any chance of a few pointers on this please, have never attempted writing a batch file before and registry scares me! Thanks Ed
cjaeger Posted June 17, 2003 Posted June 17, 2003 open regedit, look for HKEY_CURRENT_USER/Software/FileMaker/preferences. For instructions on how to implement this, search for registry in all forums. see attachment for registry info (regedit.exe) vbs-solution here http://www.fmforums.com/threads/showflat.php?Cat=&Board=UBB15&Number=39227&Forum=All_Forums&Words=registry&Match=Entire%20Phrase&Searchpage=1&Limit=25&Old=allposts&Main=39227&Search=true#Post39227
cjaeger Posted June 17, 2003 Posted June 17, 2003 but: it's far easier to implement kind of a "lightweigt" login routine which requires the user to identify first, then put this into a global. see custom login routine for this. if you are using filemaker security, you can setup different passwords with same rights in different groups, then get the group name with status(currentgroup). This will also identify your users, but can be a pain to implement with many users. Why not just trust them to select the right name from a popup list, and type a short password. no tight security necessary here.
EddyB Posted June 17, 2003 Author Posted June 17, 2003 Many thanks for all your help Christian, will have a look at all of this now! Regards Ed
Recommended Posts
This topic is 7833 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now