total commander portability

English support forum

Moderators: white, Hacker, petermad, Stefan2

tcfun
Junior Member
Junior Member
Posts: 2
Joined: 2005-01-26, 00:30 UTC

total commander portability

Post by *tcfun »

I think what total commander lacks at the moment is a gui to let u specify if your plugins will be installed in an absolute or relative path, and a way to specify the ini location inside another ini file located on the program's dir, and not in the registry.

What i find perfect in total commander is that I have installed it on my usb and have put all the plugins inside the totalcmd folder in the usb. I changed manually the ini file. Instead of writing( [lister plugins] : c:\totalcmd\plugins\lister\blah.wlx to say plugins\lister\blah.wlx ). I did it and worked . Now in every pc what I have to do is use the inireloc to tell the pc that the ini is located in the program directory, without any other change because paths of plugins are relative. So imagine.... just inserting the usb and having all the functionality of totalcmd at once. What I want to say is that if total commander had a way of doing automatically these two things, (relative paths, and inilocation defined in a file) it would be much more powerful !! You could achieve going to a pc and just run totalcmd from your usb with everything on!!!! I really Appreciate all the work that has been done on totalcmd. If I was microsoft I would pay millions to buy it.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

It has!
instead of using
c:\totalcmd\plugins\lister\blah.wlx to say plugins\lister\blah.wlx
use
%commander_path%\plugins\lister\blah.wlx to say plugins\lister\blah.wlx

You dont need to use inireloc
just put the tc-ini-file in %commander_path%
and write in this ini-file
UseIniInProgramDir=3


Beware!!!! I hope that Microsoft will NEVER buy this PRG
(they were the one that forced Christian to Change the Name)
Hoecker sie sind raus!
User avatar
szlori
Senior Member
Senior Member
Posts: 263
Joined: 2005-01-17, 07:12 UTC
Location: Sydney

Post by *szlori »

You can also check out this utility: http://www.totalcmd.net/plugring/tcloader.html

Read the Readme file, it has a pretty good explanation.
Kevin.Lee.5v
Junior Member
Junior Member
Posts: 34
Joined: 2005-01-20, 03:19 UTC

Post by *Kevin.Lee.5v »

I wrote so program too. It's only 17.5k. Why did I write another?

The program existed either launch only TC or restart only TC. Can't two function be united? Yes, it just so do.

Put the program into TC'folder with wincmd.ini and wcx_ftp.ini.
Run it WITHOUT param in order to launch TC.
Run it with param in order to restart TC. You put it on toolbar of TC best. DON'T forget param and path. Have a look at this pictrue:

http://forum.maxthon.com/forum/uploads/post-7918-1106799206.jpg

Download
Source is available

Tested on WinXP SP2
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Kevin.Lee.5v wrote:Put the program into TC'folder with wincmd.ini and wcx_ftp.ini.
Whats the PRG doing if the files have other names ?
Hoecker sie sind raus!
Kevin.Lee.5v
Junior Member
Junior Member
Posts: 34
Joined: 2005-01-20, 03:19 UTC

Post by *Kevin.Lee.5v »

Whats the PRG doing if the files have other names ?
Do you mean to say you've changed 'TOTALCMD.EXE' ?

Nothing.

Certainly, you can modify code.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Kevin.Lee.5v wrote:
Whats the PRG doing if the files have other names ?
Do you mean to say you've changed 'TOTALCMD.EXE' ?
Nothing.
Certainly, you can modify code.
no, but my tc-ini-files arent called wincmd.ini and wcx_ftp.ini.
I have changed them to TotalCmd.ini and TotalCmd.ftp 8)
(ever thought about what ftp have to do with packer-plugins)
So what your prg doing when there is no wincmd.ini and no wcx_ftp.ini?

Edit: so after testing i found that you dont read how the TC is startet
my tc is starting with a link like this
"G:\Programme\TotalCmd\TOTALCMD.EXE /i=%Commander_Path%\totalcmd.ini /f=%Commander_Path%\totalcmd.ftp"
with the prg RelaunchTC i can restart TC with no probs (its even smaller :))
but your prg doesnt seem to see the important part
"/i=%Commander_Path%\totalcmd.ini /f=%Commander_Path%\totalcmd.ftp" but just to call totalcmd.exe without any params...

Edit2: mh... where do you have learned to code? :) even if i start ur prg with "/?" it kills my TC instead of showing some kind of helpscreen :)
Hoecker sie sind raus!
Kevin.Lee.5v
Junior Member
Junior Member
Posts: 34
Joined: 2005-01-20, 03:19 UTC

Post by *Kevin.Lee.5v »

Oh. The prg will launch TC with TC's default option value.

You can modify their filename in source code.
Kevin.Lee.5v
Junior Member
Junior Member
Posts: 34
Joined: 2005-01-20, 03:19 UTC

Post by *Kevin.Lee.5v »

HOHO, I mean to say:

1. You copy it to TC's folder, then double-click it to launch TC. TC will be launched with totalcmd.ini and wcx_ftp.ini in TC's folder.

2. You put it on TC's toolbar with ANY parameter, then single-click toolbar icon to relaunch TC after if you modify ini-file.

The program don't detect exception almost in order to small and quick. :lol:

Isn't Source code the best document? :shock:
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

I don't know if you are aware that there's still a programm LaunchTC.exe available for years.

I think it would be fair to change the name of your program - at least to prevent confusion.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Kevin.Lee.5v
Junior Member
Junior Member
Posts: 34
Joined: 2005-01-20, 03:19 UTC

Post by *Kevin.Lee.5v »

I don't know if you are aware that there's still a programm LaunchTC.exe available for years.

I think it would be fair to change the name of your program - at least to prevent confusion.
I don't know there's still so program that is named LaunchTC. :oops:

Thanks.
fredvej
Junior Member
Junior Member
Posts: 26
Joined: 2003-03-13, 11:14 UTC
Location: Denmark

Post by *fredvej »

Put TC in \TotalCmd on your USB-stick and use this BAT-file in the stick's root dir :
----------------------------------------------
@rem ECHO OFF
IF NOT EXIST \TotalCmd\TOTALCMD.EXE GOTO no_tc
IF "%USERPROFILE%" == "" GOTO win9x
start \TotalCmd\TOTALCMD.EXE /I=.\win2k.ini /F=.\wcx_ftp.ini /R="%USERPROFILE%"
GOTO endpt

:win9x
start \TotalCmd\TOTALCMD.EXE /I=.\win9x.ini /F=.\wcx_ftp.ini
GOTO endpt

:no_tc
ECHO \TotalCmd\TOTALCMD.EXE not found
PAUSE

:endpt
----------------------------------------------

Install your plugins in \TotalCmd

Remember that COMMANDER_PATH is set by TC , it won't be in the environment for the BAT interpretor to use at startup time.

In your .ini and .bar files paths must start with %COMMANDER_PATH%\

Only the two .ini entries below _must_ have an absolute path , e.g. the entry for the editor doesn't need a path if the editor is on the %PATH% or in \TotalCmd .

[Lister]
IViewPath=%COMMANDER_PATH%\i_view32.exe

[Buttonbar]
Buttonbar=%COMMANDER_PATH%\special.bar

Works for me 8)
Best regards
Freddy Vejen
egondu
Junior Member
Junior Member
Posts: 10
Joined: 2005-03-19, 16:26 UTC
Location: the Netherlands

Post by *egondu »

Here is another way to use Total Commander on removable-media (USB-stick, flash-drive, floppy-disks, cd-roms etc.)
Make a bat-file (example 'start.bat') with the following content:

Code: Select all

ASET curdrive := FDRIVE
Totalcmd.exe %curdrive%\ %curdrive%\
- Put this bat-file in the Total Commander program directory.
- Put also the file 'ASET.exe' here. You can extract this from the package 'aset10.zip' (~80kb, freeware), which may be downloaded from simtel.net or filebasket.com. Aset.exe gets the current drive letter (using the internal command Fdrive) and assigns this to %curdrive%)
- Run start.bat to execute Total Commander.

Kind Regards,
Last edited by egondu on 2005-03-19, 18:41 UTC, edited 1 time in total.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

There is no "internal" command fdrive contained.
Are you really using that batch? ;)

Icfu
This account is for sale
egondu
Junior Member
Junior Member
Posts: 10
Joined: 2005-03-19, 16:26 UTC
Location: the Netherlands

Post by *egondu »

I have a small addition to my previous posting. Of course you can also put 'start.bat' in the root of the removable-drive and execute Total Commander from there (in that case, don't forget to put 'aset.exe' also there). The content of the bat-file would now be:

Code: Select all

ASET curdrive := FDRIVE
cd\totalcmd
Totalcmd.exe %curdrive%\ %curdrive%\
I was wondering if AutoIt could also do the trick? That would be great, cause AutoIt has the ability to convert the script into an exe-file: in that case only one file would be sufficient.

Kind Regards,
Post Reply