Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding to System vasriable "Path"

Status
Not open for further replies.

kemit

Technical User
Nov 6, 2002
17
GB
Hi,

I have a application that requires use of it's own dedicated .ini file.
The application does not use the registry, it basicly seaches all paths specified in path statement.

I have tried adding a system variable as shown below to include path to user profile (Ducuments and Settings\%username%\windows)
.
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Citrix\IMA\SubSystems;C:\RIO32;c:\Program Files\Common Files\Powersoft Shared;c:\sybtools\win32;C:\SYBASE\DLL;C:\SYBASE\BIN;c:\Documents and settings\%username%\windows

The problem with the above is it requires the translation of the %username% variable to make it user specific.
Unfortunately this is not translated to the username but taken literally.
Hence the path to the .ini loclated in the user profile directory is not found.

Has anyone got any ideas as to how I can add a path to use the current user name.

Thanks in Advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top