Portable TC Starting x64 or x86 Depending on the System

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
tridy
Junior Member
Junior Member
Posts: 92
Joined: 2003-11-27, 07:51 UTC
Location: Еurоpе

Portable TC Starting x64 or x86 Depending on the System

Post by *tridy »

The idea I am thinking about is to have 2 installations of TC on my USB stick, both x86 and x64 and when starting it would look if it's a 64 bit system and run x64 version of TC, otherwise x86, assuming I want TC to autostart when I plug in my USB stick. It would be nice to have most of the settings shared between the two versions but I guess plugins will not be working on both and there will be other limitations.

It is possible to achieve it via some kind of script or writing own small app, so I am wondering what are the different ways of achieving this goal people will come up with.

Thanks.
[tridy]
License #: 79539
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You may easilly install both TC into same folder, and plugins too, and each TC will use its plugins.

You may start corresponding TC with simple .bat file:

Code: Select all

@echo off
if not exist "%windir%\syswow64" start "" totalcmd.exe %*
if exist "%windir%\syswow64" start "" totalcmd64.exe %*
But keep in mind that 32-bit TC works perfectly in 64-bit Windows so it is not necessary to use 64-bit TC in 64-bit Windows.

Added %* to pass parameters to TC.
Last edited by MVV on 2011-10-02, 18:07 UTC, edited 1 time in total.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3379
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Install both TCs into the same Folder
put TC.Exe (http://home.arcor.de/gelber.elefant/tc.zip) in the same
And run TC.exe wich starts the TC depending on the OS
PLUS you can use all TotalCommand Params
(ie TC.exe /i=test.ini) starts TC32 Bit on Win32 with test.ini and
TC64 Bit on Win64 with test.ini


(I know the file is way to big yet - have to get my Delphi 3 back in here - but it was a quick and dirty job after tc64 release...)
Hoecker sie sind raus!
User avatar
tridy
Junior Member
Junior Member
Posts: 92
Joined: 2003-11-27, 07:51 UTC
Location: Еurоpе

Post by *tridy »

Thanks.
[tridy]
License #: 79539
Post Reply