[9.10x64b1] F7, environment variables not expanded
Moderators: Hacker, petermad, Stefan2, white
[9.10x64b1] F7, environment variables not expanded
F7. I tried to create folder:
%TEMP%\TC\Log
but TC, instead of expanding %TEMP% to C:\Users\<User>\AppData\Local\Temp, it just created a folder %TEMP%\TC\Log in the current folder.
%TEMP%\TC\Log
but TC, instead of expanding %TEMP% to C:\Users\<User>\AppData\Local\Temp, it just created a folder %TEMP%\TC\Log in the current folder.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
Hmmm. A better question might be "how do you "cd" into it".sqa_wizard wrote:Well, yes that it the way it works - straight forward.
How else do you create a folder with name "%TEMP%" ?

I'm talking about a classic command-prompt "cd" of course.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
I think this is intentional, or at least it's not a bug because TC 8.52a behaves the same way.
Regards
Dalai
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Yes, it seems so. IMO it would be nice if a simple checkbox existed somewhere left of the "OK" button, to "expand environment variables".Dalai wrote:I think this is intentional, or at least it's not a bug because TC 8.52a behaves the same way.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Yes, in Powershell. The classic command prompt just goes to the TEMP folder.Lefteous wrote:CD works fine here for these kind of paths.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Nope. Here it just goes to TEMP folder. Maybe it's an O/S thing or a matter of TC configuration?Lefteous wrote:I talked about the command-line in TC.Yes, in Powershell. The classic command prompt just goes to the TEMP folder.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- ghisler(Author)
- Site Admin
- Posts: 50549
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Indeed environment variables cannot currently be used in F7, Shift+F4 etc. I could allow them when using placeholders - either just when prefix < is there, e.g.
<%TEMP%
or in form
<[%temp%]
What do you think?
<%TEMP%
or in form
<[%temp%]
What do you think?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Well, it's a nice solution because the user can select which of the variables he wishes to expand, but with this solution you add an extra thing the user has to remember. If you can also add an on-the-screen hint in the dialog (a label with "use < to expand variables")...ghisler(Author) wrote:What do you think?
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- ghisler(Author)
- Site Admin
- Posts: 50549
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I could add a sample like [%temp%] to the + button list.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Yup. That would also not require a translation, right?ghisler(Author) wrote:I could add a sample like [%temp%] to the + button list.

- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
- ghisler(Author)
- Site Admin
- Posts: 50549
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
OK, [%variable%] added to multi-rename tool, F7 and Shift+F4. Also supports pseudo environment variables in the form [%$variable%], and text range from a variable like [%variable%1-5].
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com