Temp directory Focus

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Temp directory Focus

Post by *Boofo »

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
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Using command line parameters should work.

HTH
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.
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

I tried using the command line parameters and couldn't get it to work right. I am using em_temp for the Command option right now.
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
User avatar
Sombra
Power Member
Power Member
Posts: 814
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

PLEASE, read => F1 > Section 4. a

Command: %COMMANDER_PATH%\TOTALCMD.EXE /o /l=%temp%
I can read English, but... I write like Tarzan. (sorry)
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

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
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

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
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi.

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%" 
instead.
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%"
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
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

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.
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
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

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>
Workaround: use %% instead of %

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\TOTALCMD.EXE
/o /l="%%temp%%"
%COMMANDER_PATH%\TOTALCMD.EXE



-1
Regards
Holger
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

HolgerK wrote:Workaround: use %% instead of %
Exactly. There is %T (TC's internal variable for target path) in %Temp%.

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.
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

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.
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
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Boofo,
But shouldn't it look at the whole variable? (Like what is between the % signs.)
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. :)

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.
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

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
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Boofo wrote:But shouldn't it look at the whole variable? (Like what is between the % signs.)
How should then a parameter like this
%T%N
interpreted, if at the same time an environment variable %T% is defined?

Regards
Holger
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

You have a point there. I guess the double %% is the best way around this scenario. Thanks for coming up with that, sir. ;)
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
Post Reply