You are here

64-bit shell option for Command Prompt Portable?

1 post / 0 new
JCSalomon
Offline
Last seen: 2 years 12 months ago
Joined: 2007-09-25 17:40
64-bit shell option for Command Prompt Portable?

Would it make sense to add an option to Command Prompt Portable which would launch a 64-bit shell on 64-bit systems?

I.e., with this option selected, the launcher would check for the existence of %SystemRoot%\SysWOW64\cmd.exe and prefer that to %SystemRoot%\System32\cmd.exe.

The impetus behind my request is Ruby. I’ve downloaded both the 32- and 64-bit versions, and I put the following into my X:\PortableApps\CommandPromptPortable\Data\Batch\commandprompt.bat:

:: Ruby
if /i %Processor_ArchiteW6432% NEQ amd64 (
    if /i %Processor_Architecture% NEQ amd64 (
        set "Path=%~d0\ruby-2.0.0-p0-i386-mingw32\bin;%Path%"
    )
) else (
	set "Path=%~d0\ruby-2.0.0-p0-x64-mingw32\bin;%Path%"
)

With a 64-bit shell, this becomes simpler:

if /i %Processor_Architecture% == amd64 (
	set "Path=%~d0\ruby-2.0.0-p0-x64-mingw32\bin;%Path%"
) else (
	set "Path=%~d0\ruby-2.0.0-p0-i386-mingw32\bin;%Path%"
)

But does it make sense to add a “64-bit shell” option to CPP?