Dos prompt (launching 64-bit cmd.exe) ?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
serdar
Junior Member
Junior Member
Posts: 3
Joined: 2013-08-15, 10:01 UTC

Dos prompt (launching 64-bit cmd.exe) ?

Post by *serdar »

I have very interesting problem.
Just bought a new windows 8 computer, 64bit.
Firstly intalled my existing Total Commander 7.57 of course ;)

I' have an old engineering software and install it also. This software starts with dos batch file.
Whenever I started it inside of Total Commander 7.57, it works.
But if I start it by clicking directly by its shortcut; it doesn't start...

If I install Total Commander 8.01, also not possible to start it in Total Commander...

What is difference in dos prompts in two versions of TC?
Any thoughts?

Serdar
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

TC doesn't process batch files, it simply calls system processor. The only thing I can think of is that your batch uses some 32-bit tools but you've installed 64-bit TC. Try to start your batches from 32-bit TC 8.01. Note that it is not necessary to use 64-bit TC under 64-bit Windows (I'm using 32-bit one here).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC 7.57 is launching 32-bit cmd.exe.
TC 8 64-bit is launching 64-bit cmd.exe.

You can try to run the batch via 32-bit cmd.exe manually:
C:\Windows\SysWOW64\cmd.exe /K c:\path\file.bat
Author of Total Commander
https://www.ghisler.com
serdar
Junior Member
Junior Member
Posts: 3
Joined: 2013-08-15, 10:01 UTC

Post by *serdar »

Dear MVV,
I did not try using 32 bit 8.01 yet (will try and inform you also) ; but Mr. Ghisler's "C:\Windows\SysWOW64\cmd.exe /K c:\path\file.bat" method works!

Thanks very much :)

Only issue after my program starts, dos prompt remains open...

Is there any switch or method to close it after execution?
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

2serdar
Try "C:\Windows\SysWOW64\cmd.exe /C c:\path\file.bat"
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

serdar wrote:Is there any switch or method to close it after execution?
Open a DOS box and type

C:\>cmd /?


to see all parameters of the command interpreter.




.
serdar
Junior Member
Junior Member
Posts: 3
Joined: 2013-08-15, 10:01 UTC

Post by *serdar »

"C:\Windows\SysWOW64\cmd.exe /C c:\path\file.bat" is working flawlessly.

Thanks for everybody...
Post Reply