Open a buttonbar item with synchronized navigation enabled

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
fm-xvid
Junior Member
Junior Member
Posts: 71
Joined: 2007-10-09, 05:28 UTC

Open a buttonbar item with synchronized navigation enabled

Post by *fm-xvid »

Hello,

I have a buttonbar which opens folders from local drive and a shared drive.

Is there a way to make the folders open with the "cm_SyncChangeDir" command already enabled?

Below is the buttonbar info.
cmd: *%COMMANDER_EXE%
param: /S /T /O /L="%USERPROFILE%\Documents\MyStuff\" /R="\\hostname\Temp$\MyStuff\"
User avatar
petermad
Power Member
Power Member
Posts: 14807
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Open a buttonbar item with synchronized navigation enabled

Post by *petermad »

2fm-xvid
Put this in your usercmd.ini file, which is located the same place as your wincmd.ini file (if it does not exist, just make it as an ASCII txt file):

Code: Select all

[em_gotomydirs]
cmd=cd %USERPROFILE%\Documents\MyStuff\
path=\\hostname\Temp$\MyStuff\
Then make a button with this content:

Code: Select all

TOTALCMD#BAR#DATA
cm_FocusLeft,em_gotomydirs,cm_SyncChangeDir

wcmicons.dll,75



-1
To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply