This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Make Total Commander Self-contained.

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) Printable version
View previous topic :: View next topic  
Author Message
JimmyTheBroker
Member
Member


Joined: 06 Jun 2017
Posts: 169

PostPosted: Tue Feb 13, 2018 5:18 pm    Post subject: Make Total Commander Self-contained. Reply with quote

Hi guys,

I installed total commander and have made custom columns, commands, button bar icons etc. Currently I make changes on my personal computer and then need to do the same for my work computer (very annoying).
I'm curious about how I could streamline the process, so I don't have to keep making changes at both ends. Ideally, make changes on one TC, and copy them across to the others. (To Synchronize Custom Columns I need to find the wincmd.ini>Ctrl+F[CustomFields] and paste in the code from my newest version.)

A few things that I think may be relevant.
1. I know how to change environment variables.
(for windows 10 Start > System > Advanced system settings > Environment Variables…)

2. I installed TC in:
C:\totalcmd (Work Computer's Directory)
C:\Program Files (x86) (Personal Computer's Directory)

3. My "wincmd.ini" and "wcx_ftp.ini" are located in (for both Work and Personal):
C:\Users\[Username]\AppData\Roaming\GHISLER

4. Ideally I would like to have a version of TC on a USB and a version on my Personal Computer, both of which have the same customizations.
(I'm guessing here but. With the USB, I would only need to set up the correct Environmental Variable whenever I jump onto a new machine?)

Ideally I would like to have "wincmd.ini" and "wcx_ftp.ini" located within the same directory as totalcmd (totalcmd is where I have been storing my plugins, icons, "Everything" from voidtools. I'm just not sure how to transfer things like "Directory hotlist" etc)

-------------------------------------------
Second question:
Is it possible to have the TC's Synchronize Directories (Asymmetric[Ticked]) to apply all changes from one Total Commander to another?
(Say from a USB to a personal computer, and then at a later date from personal Computer back to a USB?)
I could have Total Commander always running off a stick, but I would like to be able to backup the custom settings, and honestly would prefer to have it run off my personal computer when I'm home.


Thanks guys,
Jimmy


I got this idea from https://ghisler.ch/board/viewtopic.php?p=333550#333550:
a) 'shorten your path', e.g. FROM: D:\Daten\Programme\TotalCommander\TCD_USB-Stick\TC32-64USB ... TO: %COMMANDER_PATH%
b) make it independent of the drive, e.g. with portable use of TC
_________________
I finally get notifications from emails again!!!
So happy!
Back to top
View user's profile Send private message
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 8003
Location: Russian Federation

PostPosted: Wed Feb 14, 2018 12:08 am    Post subject: Reply with quote

You can have your config files and all other TC files in TC directory, just put 'em there and add UseIniInProgramDir=7 key to Configuration section of wincmd.ini. Also you can redirect history sections to a separate INI outside of TC dir to exclude them from syncing.
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
JimmyTheBroker
Member
Member


Joined: 06 Jun 2017
Posts: 169

PostPosted: Wed Feb 14, 2018 5:27 am    Post subject: Reply with quote

MVV wrote:
You can have your config files and all other TC files in TC directory, just put 'em there and add UseIniInProgramDir=7 key to Configuration section of wincmd.ini. Also you can redirect history sections to a separate INI outside of TC dir to exclude them from syncing.


Done. Also thanks.

Moved everything from roaming to the totalcmd directory
default.bar
default.br2
jpg-comment.ini
usercmd.ini
wcx_ftp.ini
wincmd.ini

I've been experimenting with moving the TC directory to other locations. seems to mostly work.
---------
New question (still related):
Moving the TC installed directory causes me to lose my plugins (they are within the totalcmd directory, so are my custom icons ([path]\totalcmd\PlugInsJames and [path]\totalcmd\icons)

Original wicnmd.ini
    [ContentPlugins]
    0=C:\Program Files (x86)\totalcmd\PlugInsJames\exif.wdx64
    0_detect=...
    1=C:\Program Files (x86)\totalcmd\PlugInsJames\jpg-comment.wdx64
    1_detect=...
    0_date=1277954794
    0_flags=0
    1_date=1278518176
    1_flags=17


I had thought the following changes would have allowed TC to read the new directory location of the plugins ([path]\totalcmd\PlugInsJames I want the plugin location to move with the TC directory), Any ideas how to make the plugin path dynamic?

My attempt to fix wicnmd.ini
    [ContentPlugins]
    0=[=tc.writetime.h.m.s]
    1=[=tc.file type]
    [ContentPlugins]
    0=%$LOCAL_APPDATA%\GHISLER\totalcmd\PlugInsJames\exif.wdx64
    0_detect=...
    1=%$LOCAL_APPDATA%\GHISLER\totalcmd\PlugInsJames\jpg-comment.wdx64
    1_detect=...
    0_date=1277954794
    0_flags=0
    1_date=1278518176
    1_flags=17

_________________
I finally get notifications from emails again!!!
So happy!
Back to top
View user's profile Send private message
JimmyTheBroker
Member
Member


Joined: 06 Jun 2017
Posts: 169

PostPosted: Wed Feb 14, 2018 5:51 am    Post subject: Reply with quote

Also if I have a copy of TC on a USB and on a hard-drive, how can I tell which one of the two is being ran?

Thanks.
_________________
I finally get notifications from emails again!!!
So happy!
Back to top
View user's profile Send private message
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 8003
Location: Russian Federation

PostPosted: Wed Feb 14, 2018 9:49 am    Post subject: Reply with quote

Use %COMMANDER_PATH% instead of hardcoded paths to plugins etc that are in TC dir, this will make TC dir portable.

You can use different e.g. color setups to distinguish local and portable TC instances...
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
tuska
Power Member
Power Member


Joined: 21 May 2007
Posts: 1065

PostPosted: Wed Feb 14, 2018 12:34 pm    Post subject: TC on a USB and or on a hard-drive Reply with quote

JimmyTheBroker wrote:
Also if I have a copy of TC on a USB and on a hard-drive, how can I tell which one of the two is being ran?

Someday I found this code in a forum:
Code:
cmd.exe /c "echo TC Drive=%COMMANDER_DRIVE% & echo TC Startup path=%COMMANDER_PATH% & echo TC INI File=%COMMANDER_INI% & pause"

Since I do not need that very often, I have integrated the code in the starter menu for me.

Regards
Karl
Back to top
View user's profile Send private message
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 8003
Location: Russian Federation

PostPosted: Wed Feb 14, 2018 11:16 pm    Post subject: Reply with quote

tuska,
In case of portable TC with INI in its dir it is enough to open Help - About to see paths to INI files and TC dir...
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
JimmyTheBroker
Member
Member


Joined: 06 Jun 2017
Posts: 169

PostPosted: Thu Feb 15, 2018 2:30 am    Post subject: Reply with quote

MVV wrote:
Use %COMMANDER_PATH% instead of hardcoded paths to plugins etc that are in TC dir, this will make TC dir portable.

You can use different e.g. color setups to distinguish local and portable TC instances...


how do you do the colour thing?
_________________
I finally get notifications from emails again!!!
So happy!
Back to top
View user's profile Send private message
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 8003
Location: Russian Federation

PostPosted: Thu Feb 15, 2018 6:30 am    Post subject: Reply with quote

Redirect colors section to separate file that is NOT synchronized and setup different colors in different TC copies.
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group