cm_executedos in TC 9 beta 14 does not work

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

User avatar
sqa_wizard
Power Member
Power Member
Posts: 3862
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

holst@wmd.de: One more: Do you have a file like cmd.bat or cmd.cmd in your path (just try to run them from TC commandline)
#5767 Personal license
holst@wmd.de
Junior Member
Junior Member
Posts: 11
Joined: 2016-09-19, 13:43 UTC

Post by *holst@wmd.de »

petermad wrote:2ghisler(Author)
How about running them from the TC command line at the bottom?
It sems that holst@wmd.de already did that:
Calling "cm_executedos" in the commandline of TC leads to a dialogue box.

Header: Total Commander
Text: Nicht genug Speicher (german for "not enough memory")
noclose.exe and noclose64.exe exists and run without problems.
Running them from TC via double click or in tc commandline opens
a command prompt window.
@ghisler: As quoted above, did not work in tc commandline. Switched to using cmd instead of cm_executedos as a workaround. No need to dive deeper in this issue as it's obviously a configuration problem on my side.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's not what I meant!

I asked whether running noclose.exe from the command line worked or not. You already said that cm_executedos didn't work from the command line.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14795
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

noclose.exe and noclose64.exe exists and run without problems.
Running them from TC via double click or in tc commandline opens
a command prompt window.
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
holst@wmd.de
Junior Member
Junior Member
Posts: 11
Joined: 2016-09-19, 13:43 UTC

Post by *holst@wmd.de »

ghisler(Author) wrote:That's not what I meant!

I asked whether running noclose.exe from the command line worked or not. You already said that cm_executedos didn't work from the command line.
1. cmd.exe
Opening cmd.exe from windows startmenu.
Switching via cd to c:\totalcmd
Executing noclose.exe and noclose64.exe
After hitting "enter" nothing happens, except a newline in the cmd window
What should happen?

2. executing "noclose.exe" and "noclose64.exe" from the tc commandline
This opens a windows commandline window in the correct directory (c:\totalcmd). c:\totalcmd is not in %PATH%.

No "cmd.bat" or "cmd.cmd" on the whole system, not in %PATH% and not in any other location on the local partitions.
lloogg
Junior Member
Junior Member
Posts: 3
Joined: 2016-12-31, 06:34 UTC

Post by *lloogg »

got the same problem.

environment:
windows 7 SP1 64 bit
9.0a 64bit
ComSpec: c:\windows\system32\cmd.exe
no cmd.cmd or cmd.bat
noclose64.exe from TC commandline works right.

guess some configuration from c driver cause this problem, because another computer(same env) doesn't have this problem.

And uninstall, ccleaner register, install 8.52a 64 bit still the same which doesn't in the same computer about one month back.

maybe reinstall the system is the final solution. :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

What does
set comspec

show? It sounds like the 32-bit version of the command processsor referenced by this option is not found.
Author of Total Commander
https://www.ghisler.com
holst@wmd.de
Junior Member
Junior Member
Posts: 11
Joined: 2016-09-19, 13:43 UTC

Post by *holst@wmd.de »

ghisler(Author) wrote:What does
set comspec

show? It sounds like the 32-bit version of the command processsor referenced by this option is not found.
For me, it's:

c:\>set comspec
COMSPEC=C:\Windows\System32\cmd.exe
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

holst@wmd.de wrote:
ghisler(Author) wrote:What does
set comspec

show? It sounds like the 32-bit version of the command processsor referenced by this option is not found.
For me, it's:

c:\>set comspec
COMSPEC=C:\Windows\System32\cmd.exe
to be sure that you have COMSPEC variable well defined inside TC process, in the command field of a test button:
1) just put %COMSPEC%
2) cmd /k "echo %COMSPEC%"

Test each version. If you have an error or not COMSPEC pointing to your shell, probably a wdx plugin like autostart or the process from wich you launched TC did an unexpected modification...
lloogg
Junior Member
Junior Member
Posts: 3
Joined: 2016-12-31, 06:34 UTC

Post by *lloogg »

holst@wmd.de wrote:
ghisler(Author) wrote:What does
set comspec

show? It sounds like the 32-bit version of the command processsor referenced by this option is not found.
For me, it's:

c:\>set comspec
COMSPEC=C:\Windows\System32\cmd.exe
me too.
c:\>set comspec
ComSpec=C:\Windows\system32\cmd.exe
lloogg
Junior Member
Junior Member
Posts: 3
Joined: 2016-12-31, 06:34 UTC

Post by *lloogg »

nsp wrote:
holst@wmd.de wrote:
ghisler(Author) wrote:What does
set comspec

show? It sounds like the 32-bit version of the command processsor referenced by this option is not found.
For me, it's:

c:\>set comspec
COMSPEC=C:\Windows\System32\cmd.exe
to be sure that you have COMSPEC variable well defined inside TC process, in the command field of a test button:
1) just put %COMSPEC%
2) cmd /k "echo %COMSPEC%"

Test each version. If you have an error or not COMSPEC pointing to your shell, probably a wdx plugin like autostart or the process from wich you launched TC did an unexpected modification...
mine works right now.
like before, uninstall, cclean registry, install and suddenly it works! :D
holst@wmd.de
Junior Member
Junior Member
Posts: 11
Joined: 2016-09-19, 13:43 UTC

error still present

Post by *holst@wmd.de »

I don't waste any more time on this, using a workaround for calling cmd directly and in the long run using powershell.

By the way: is there something similar to cm_executedos for powershell? :-)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

COMSPEC=C:\Windows\System32\cmd.exe
32-bit and 64-bit programs see different system32 folders:

32-bit sees SysWow64
64-bit sees SysNative

Make sure that both contain cmd.exe.
Author of Total Commander
https://www.ghisler.com
Post Reply