total commander portability
Moderators: white, Hacker, petermad, Stefan2
total commander portability
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.
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.
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)
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!
You can also check out this utility: http://www.totalcmd.net/plugring/tcloader.html
Read the Readme file, it has a pretty good explanation.
Read the Readme file, it has a pretty good explanation.
-
- Junior Member
- Posts: 34
- Joined: 2005-01-20, 03:19 UTC
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
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
-
- Junior Member
- Posts: 34
- Joined: 2005-01-20, 03:19 UTC
no, but my tc-ini-files arent called wincmd.ini and wcx_ftp.ini.Kevin.Lee.5v wrote:Do you mean to say you've changed 'TOTALCMD.EXE' ?Whats the PRG doing if the files have other names ?
Nothing.
Certainly, you can modify code.
I have changed them to TotalCmd.ini and TotalCmd.ftp
(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!
-
- Junior Member
- Posts: 34
- Joined: 2005-01-20, 03:19 UTC
-
- Junior Member
- Posts: 34
- Joined: 2005-01-20, 03:19 UTC
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.
Isn't Source code the best document?
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.
Isn't Source code the best document?
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
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
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
-
- Junior Member
- Posts: 34
- Joined: 2005-01-20, 03:19 UTC
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
----------------------------------------------
@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
Best regards
Freddy Vejen
Freddy Vejen
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:
- 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,
Make a bat-file (example 'start.bat') with the following content:
Code: Select all
ASET curdrive := FDRIVE
Totalcmd.exe %curdrive%\ %curdrive%\
- 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.
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:
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,
Code: Select all
ASET curdrive := FDRIVE
cd\totalcmd
Totalcmd.exe %curdrive%\ %curdrive%\
Kind Regards,