I created a basic Notes.ini for install purposes and included the %username% environment variable in the Notes.ini to define the directory:
Directory=C:\Notesdata%username%
When testing it the %username% appeared to be interpreted as a literal string (%username%) instead of being resolved to the name of the user who logged in (in this particular case “notesuser”)
Is there any way to use the %username% environment variable directly in the notes.ini so it functions in the way it was designed to?
IE the same way it does for the rest of the operating environment?
OR is there an alternative method for passing environment variable to the Notes.ini file?
Regards
Jezza
Subject: Use of %username% environment variable in the Notes.ini
Hi Jezza,
I know exactly what you’re saying but the answer would be no.
There are two ways I can think of doing this -
-
You have a command-line search/replace tool that you run when setting up the user, that will run against the notes.ini, search for %username% and replace with whatever you wish.
-
The most common way of doing this - is to not have to do it! If this is for users who have drive mappings, you only need the drive mapping to the notes.ini file, then let the NT Profile/Netware Login/whatever take care of the usernames!
For instance, on login, drive N: would map to \SERVER\VOLUME-ETC\USERAREAS\NOTES%USERNAME%
Then in the notes.ini, the default is same for everyon - drive N: !!
Hope that helps
If you need clarification just ask … I’m hungover and the fog in my brain is lifting slowly!
Mark
LogicSpot
UK
Subject: RE: Use of %username% environment variable in the Notes.ini
Hi Mark
Thanks for the feedback. It clarifies the issue greatly
I’ll try using a local share and mapping n: to \localmachine\sharename%username%
Rest assured your previous nights celebration had no effect on your ability to explain clearly, very much appreciated
Regards
Jezza
Subject: RE: Use of %username% environment variable in the Notes.ini
hehe, nice one Jezza
Hope all’s worked out OK!
Mark