Fundamental problem with TCMenu
Moderators: white, Hacker, petermad, Stefan2
- Wilhelm M.
- Power Member
- Posts: 1012
- Joined: 2003-06-05, 10:45 UTC
Fundamental problem with TCMenu
Hello!
I know it's a shame 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?
I know it's a shame 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
Wilhelm
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
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.
- Wilhelm M.
- Power Member
- Posts: 1012
- Joined: 2003-06-05, 10:45 UTC
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.
---------------
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
Wilhelm
- Wilhelm M.
- Power Member
- Posts: 1012
- Joined: 2003-06-05, 10:45 UTC
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?
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
Wilhelm
name change?
2djk
Hi djk,
- maybe doesn't help, but now it's totalcmd.inc...
before it was wincmd.inc; does the tool recognize both?
KR
Clo
Hi djk,
- maybe doesn't help, but now it's totalcmd.inc...
before it was wincmd.inc; does the tool recognize both?
KR
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
- Wilhelm M.
- Power Member
- Posts: 1012
- Joined: 2003-06-05, 10:45 UTC
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.
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
Wilhelm
- Wilhelm M.
- Power Member
- Posts: 1012
- Joined: 2003-06-05, 10:45 UTC
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!
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
Wilhelm
- Wilhelm M.
- Power Member
- Posts: 1012
- Joined: 2003-06-05, 10:45 UTC
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! The above problems can not change my positive opinion of TCMenu.
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! The above problems can not change my positive opinion of TCMenu.
Grüße/Regards,
Wilhelm
Wilhelm
2Wilhelm M.
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.
Yes, it is me. At you service!VadiMGP, are you the author of TCMenu? Then I would like to thank you for the that wonderful addition!
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.
- Wilhelm M.
- Power Member
- Posts: 1012
- Joined: 2003-06-05, 10:45 UTC
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!
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!
Grüße/Regards,
Wilhelm
Wilhelm