Fundamental problem with TCMenu

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

User avatar
Wilhelm M.
Power Member
Power Member
Posts: 994
Joined: 2003-06-05, 10:45 UTC

Fundamental problem with TCMenu

Post by *Wilhelm M. »

Hello!

I know it's a shame :oops: but I must ask an elementary question about TCMenu: how can I call internal Tc commands with TCMenu? It simply does not work the way I try... (Calling external programs works perfectly well)

The problem: I have defined a TC button for TCMenu which refers to a button-bar called synchronise.bar. In this bar 3 buttons are defined, 2 of them call an external directory synchroniser - those are o.k. The other one simply call the internal cm_FileSyn and always comes up with the error message "Cannot run cm_FileSync". I have messed around with the start-path of cm_FileSync within the synchronise.bar but to no avail.

Can anyone help?
Grüße/Regards,
Wilhelm
User avatar
Hacker
Moderator
Moderator
Posts: 13068
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

TCMenu being an external program probably can't instruct TC to run its internal commands (at least not easily). Maybe you could use it to call Aezay's Script Editor ( http://www.ghisler.ch/board/viewtopic.php?t=2499 ) which would then pass the internal command to TC...

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
Wilhelm M.
Power Member
Power Member
Posts: 994
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

Hm, but the readme file that came with TC Menu says

---------------
Internal TC commands
-------------------------------------------------------------------------------
Displayed subbar can contain any internal TC command, except command to switch to another subbar and cm_List <filename>.
------------------

Must be something else.
Grüße/Regards,
Wilhelm
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

I can't see any problem with it on my computer.

I can run TCMenu and after pressing a button with command "cm_FileSync", no parameters, no start path it just runs Synhronization window.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 994
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

Then you're lucky, DJK!
Unfortunately, it does not work for me.

Maybe it helps to copy the commands from my definitons here?
Here is the section of my default.bar:

button23=C:\tools\wincmd\Wcmicons.icl,42
cmd23=C:\tools\wincmd\TCTools\TCmenu.exe
param23=C:\tools\wincmd\Synchronise.bar -$

and the section from the Synchronise.bar:

button1=C:\tools\wincmd\Wcmicons.icl,20
cmd1=cm_FileSync

Could it be that parm23 is not correctly defined? Some parameters missing?
Grüße/Regards,
Wilhelm
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Wilhelm M.
It seems to be ok, my files look very similar. I also use -$ parameter.
I've tested it on WinNT and WinXP Pro systems.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Wilhelm M. Message "Cannot run cm_FileSync" means TCMenu cannot find file .inc where internal commands listed or .inc file doesn't contains cm_FileSync command.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

name change?

Post by *Clo »

2djk
Hi djk,
- maybe doesn't help, but now it's totalcmd.inc...
before it was wincmd.inc; does the tool recognize both?

:mrgreen: KR
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2 Wilhelm M.
Can you check if registry entries for TC contain environement variables (like %COMMANDER_PATH%)? If yes - try to replace it on absolute path.
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 994
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

Hello dear helpers djk and VadiMPG,
thanks a lot for your contributions!
In the meantime I've also tried to generate the synchronise button on my desktop computer (Win2k) and it works fine!
The problem arose on my notebook (winME) and is still not solved. I can only say that
a) it has nothing to do with environment variables
b) the totalcmd.inc is present and has this name (not wincmd).
It is also remarkable that if the subbar (synchronise.bar) is installed in TC as the mainbar there is no problem at all. Only if the subbar is called via TCMenu (from a button in the real main bar) then the error occurs.
I have my notebook not at hand presently so I cannot check the registry settings. When I have done this I will drop a note again, either thanking you once more (if I can solve the problem) or asking you more questions.
Grüße/Regards,
Wilhelm
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 994
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

Hi!

Unfortunately there is still no solution...
On my notebook (Win ME) the registry settings seem to be okay except that I found the TC entry only (!) in CURRENT_USER but not in LOCAL_MACHINE. I don't know why, but I can hardly believe that this is the reason for the problems because I think that TC takes the settings for the currently logged-in user from the CURRENT_USER branch of the registry.

On the deskop (Win 2k) everything is working fine with apparently the same settings.

It's a mystery to me!
Grüße/Regards,
Wilhelm
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Wilhelm M. Can you put here your registry settings for TC?
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 994
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

Sorry that my answer comes so late!

Here they are:

[HKEY_CURRENT_USER\Software\Ghisler]

[HKEY_CURRENT_USER\Software\Ghisler\Total Commander]
"IniFileName"=".\\wincmd.ini"
"FtpIniName"=".\\wcx_ftp.ini"
"InstallDir"="c:\\tools\\wincmd\\"

and:

[HKEY_LOCAL_MACHINE\SOFTWARE\Ghisler]

[HKEY_LOCAL_MACHINE\SOFTWARE\Ghisler\Total Commander]
"IniFileName"=".\\wincmd.ini"
"FtpIniName"=".\\wcx_ftp.ini"
"InstallDir"="C:\\tools\\wincmd\\"

Perhaps I should add that c:\tools\wincmd\ is the correct path. Its a Win ME system. On a W2k (my desktop at work) the entries look exactly the same and the whole ting works

BTW: VadiMGP, are you the author of TCMenu? Then I would like to thank you for the that wonderful addition! :D The above problems can not change my positive opinion of TCMenu.
Grüße/Regards,
Wilhelm
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Wilhelm M.
VadiMGP, are you the author of TCMenu? Then I would like to thank you for the that wonderful addition!
Yes, it is me. :) At you service!

Can you check, please, wincmd.inc (or totalcmd.inc) file in the C:\tools\wincmd\ directory? Is it contains cm_FileSync command? This file should contain line like
cm_FileSync=2020;Synchronize directories

If your .inc file seems ok, please send it to me by email.
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 994
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

Hello!

It's becoming more and more mysterious. The Totalcmd.inc is okay. The Cm_FileSync line is included. I've made a binary comparison between the files on my desktop (where everthing works) and my laptop - they are identical. I can send it to you if you provide me with your adress (cannot find it in your profile), but I'm not very optimistic. If there was anything wrong with the file, the cm_Filesync command would never work. But it does! If it is not called by TCMenu, that is.

As I have said: it's a mystery! :shock:
Grüße/Regards,
Wilhelm
Post Reply