SkyFrontier wrote:
so %USERPROFILE%, %tmp% and such could be really PORTABLE paths right from the app statup?
Currently if you enter %tmp% you have as result something like:
Code: Select all
C:\Documents and Settings\Administrator\Local Settings\Temp\
There are TWO variables in that common path, though (C:\Documents and Settings\%userprofile%\Local Settings\%Temp%\).
You mixed things up here.
"C:\Documents and Settings\%userprofile%\Local Settings\%Temp%\" is wrong.
%userprofile% points to
C:\Documents and Settings\<UserName>
for XP
or
for W7 to
C:\Users\<UserName>
and %tmp" to
C:\Documents and Settings\<UserName>\Local Settings\Temp\
or
C:\Users\<UserName>\AppData\Local\Temp
and so always "portable".
So if you use "goto %temp%;"
you go always to the temp folder of the current logged-in user, no matter if XP or W7.
To be portable relative to XYplorer-folder you can use
goto "<xypath>\NewItems";
or even something like
goto "<xypath>\..\OtherTools\ToolB\b.exe";
Maybe you can provide an example what you want to do?