B
Bart
Hi,
I'm trying to extend the path variable by adding a path that points to
a user directory.
Obviously I don't want to hardcode that (C:\Users\Me\Bin), because it
should work for al users.
I want all users to have their own space to add their favorite
batchfiles etc, so they can be called from the commandline interface
(and from other batch-files).
On Linux this would be accomplished by adding :~/SomePath to the path
statement.
On Win7 I tried adding %USERPROFILE% and %HOMEDRIVE%%HOMEPATH%, both
to no avail, I end up with a path like:
C:\Users\Bart>path
PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;
[...snip...]
C:\devel\fpc\bin\i386-Win32;C:\devel\fpc\bin\i386-Win32;%USERPROFILE%\bin
So the %USERPROFILE% does not expand here.
In the default path statement there are numerous occasions of use of
environentvariables, and also TEMP is defined using %USERPROFILE%.
Obviously I am doing something wrong here, so how do I should I do
that?
Bart
I'm trying to extend the path variable by adding a path that points to
a user directory.
Obviously I don't want to hardcode that (C:\Users\Me\Bin), because it
should work for al users.
I want all users to have their own space to add their favorite
batchfiles etc, so they can be called from the commandline interface
(and from other batch-files).
On Linux this would be accomplished by adding :~/SomePath to the path
statement.
On Win7 I tried adding %USERPROFILE% and %HOMEDRIVE%%HOMEPATH%, both
to no avail, I end up with a path like:
C:\Users\Bart>path
PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;
[...snip...]
C:\devel\fpc\bin\i386-Win32;C:\devel\fpc\bin\i386-Win32;%USERPROFILE%\bin
So the %USERPROFILE% does not expand here.
In the default path statement there are numerous occasions of use of
environentvariables, and also TEMP is defined using %USERPROFILE%.
Obviously I am doing something wrong here, so how do I should I do
that?
Bart