Temp directory Focus
Moderators: Hacker, petermad, Stefan2, white
- Boofo
- Power Member
- Posts: 1431
- Joined: 2003-02-11, 00:29 UTC
- Location: Des Moines, IA (USA)
- Contact:
Temp directory Focus
Is there a way to focus em_temp in the left pane using a button in the button bar? It opens up in whatever pane is focused right now. Thanks in advance.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
- Boofo
- Power Member
- Posts: 1431
- Joined: 2003-02-11, 00:29 UTC
- Location: Des Moines, IA (USA)
- Contact:
I tried doing it exactly that way and all it does it make the left pane mimic the right pane as to what directory shows up. And, believe it or not, I did read that first.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
- Boofo
- Power Member
- Posts: 1431
- Joined: 2003-02-11, 00:29 UTC
- Location: Des Moines, IA (USA)
- Contact:
Ok, I got it working. I was using %COMMANDER_PATH%\TOTALCMD.EXE for the command and /O /T /L=%temp% for the parameters. I didn't know you had to put it all in the command line. Why doesn't it work the original way I did it?
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
Hi.
On WinXP the "%temp%" folder name will enclose space characters. Therefore, it may be advisible to useinstead.
On my Vista system, both commandlines work as expected.I.e. the current T.C. instance will be reloaded and the left hand panel will have the focus and the current folder will be "%temp%". Neither expanded foldernames of %COMMANDER_PATH% or of %TEMP% encloses any space characters here.
<Added>
Confirmed. I put everything into the commandline field. The parameter field will not expand environment variables, i.e. %TEMP%. This is a known limitation, as far as I know. T.C. internal variables like %P %N %T %M %S %L might collide with environment variables having the same names.
</Added>
Karl
On WinXP the "%temp%" folder name will enclose space characters. Therefore, it may be advisible to use
Code: Select all
"%COMMANDER_PATH%\TOTALCMD.EXE" /o /l="%temp%"
On my Vista system, both commandlines work as expected.
Code: Select all
%COMMANDER_PATH%\TOTALCMD.EXE /o /l=%temp%
"%COMMANDER_PATH%\TOTALCMD.EXE" /o /l="%temp%"
<Added>
Confirmed. I put everything into the commandline field. The parameter field will not expand environment variables, i.e. %TEMP%. This is a known limitation, as far as I know. T.C. internal variables like %P %N %T %M %S %L might collide with environment variables having the same names.
</Added>
Karl
- Boofo
- Power Member
- Posts: 1431
- Joined: 2003-02-11, 00:29 UTC
- Location: Des Moines, IA (USA)
- Contact:
I am using this as a button in the button bar. It only works if I put the whole line in the Command option. If I split it up and add the parameters in the Parameters option, it no longer works. Shouldn't it work both ways?
Doesn't %COMMANDER_PATH% take the spaces into account already?
EDIT: My message beat your edit. Thanks for explaining that.
But it still is weird how it works that way.
Doesn't %COMMANDER_PATH% take the spaces into account already?
EDIT: My message beat your edit. Thanks for explaining that.

But it still is weird how it works that way.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
Workaround: use %% instead of %karlchen wrote:<Added>
Confirmed. I put everything into the commandline field. The parameter field will not expand environment variables, i.e. %TEMP%. This is a known limitation, as far as I know. T.C. internal variables like %P %N %T %M %S %L might collide with environment variables having the same names.
</Added>
Code: Select all
TOTALCMD#BAR#DATA
%COMMANDER_PATH%\TOTALCMD.EXE
/o /l="%%temp%%"
%COMMANDER_PATH%\TOTALCMD.EXE
-1
Holger
- Boofo
- Power Member
- Posts: 1431
- Joined: 2003-02-11, 00:29 UTC
- Location: Des Moines, IA (USA)
- Contact:
2Hacker,
But shouldn't it look at the whole variable? (Like what is between the % signs.)
Thank guys. It works with the double %. Did I miss that somewhere in the chm file, by chance? If I did, I apologize for not knowing this.
But shouldn't it look at the whole variable? (Like what is between the % signs.)
Thank guys. It works with the double %. Did I miss that somewhere in the chm file, by chance? If I did, I apologize for not knowing this.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
Boofo,

Roman
Well, the variable that TC encounters first is %T, and it does not check if you might have perhaps meant some other combination of %'s to mean something else. So TC just expands %TEMP% to "c:\target\panel\dir\emp" and as it cannot find the "emp" subdir it goes one dir higher (which matches the %T dir). Just for fun, you can try creating an "emp" subdir in the target panel and see if the source panel goes there after executing the %TEMP% command.But shouldn't it look at the whole variable? (Like what is between the % signs.)

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
- Boofo
- Power Member
- Posts: 1431
- Joined: 2003-02-11, 00:29 UTC
- Location: Des Moines, IA (USA)
- Contact:
I tried the "just for fun" experiment and you are right. It goes to the target "emp" directory with %temp%. It makes sense but I still think the parameters should be read wholly.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license