total commander portability

English support forum

Moderators: Hacker, petermad, Stefan2, white

egondu
Junior Member
Junior Member
Posts: 10
Joined: 2005-03-19, 16:26 UTC
Location: the Netherlands

Post by *egondu »

There is no "internal" command fdrive contained.
Fdrive is a 'function' of Aset.exe
Excuse me for my wrong terminology.

Kind Regards,
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

I checked "aset -h" and "aset -H" and there is no word about internal fdrive command.

Furthermore

Code: Select all

ASET curdrive := FDRIVE 
echo "%curdrive%"
pause
shows that variable %curdrive% is empty.

Icfu
This account is for sale
egondu
Junior Member
Junior Member
Posts: 10
Joined: 2005-03-19, 16:26 UTC
Location: the Netherlands

Post by *egondu »

Code: Select all

I checked "aset -h" and "aset -H" and there is no word about internal fdrive command.
That's ok. More information about the internal commands/functions of Aset can be retrieved by reading the file 'aset.doc' (this is an ascii text-file, although it has a doc-extension).
The -h and -H parameters only summarize some basic program usage.
Furthermore

Code: Select all

ASET curdrive := FDRIVE
echo "%curdrive%"
pause
shows that variable %curdrive% is empty.
It works for me (using win98). Maybe you could try another batch-string utility that gets the current drive-letter into a variable.

Kind Regards,
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

It works for me (using win98). Maybe you could try another batch-string utility that gets the current drive-letter into a variable.
Well, there is %commander_path% variable so there is absolutely no use for workarounds anyway. ;)

If you need more comfort there are enough 32-Bit TC starters available, 16-Bit code has to be emulated using ntvdm.exe under NT, bad solution.
So, aset may be nice under DOS/W9X but it's not suited under modern OSes.

Icfu
This account is for sale
egondu
Junior Member
Junior Member
Posts: 10
Joined: 2005-03-19, 16:26 UTC
Location: the Netherlands

Post by *egondu »

Ok, Thanx. I like bat-files for their ease and versatility.

After visiting robvanderwoude.com I learned that the trick is also possible using only 1 bat-file (you may change the last two lines to your appropriate directories).

Code: Select all

@ECHO OFF
CD | CHOICE /N /C:ABCDEFGHIJKLMNOPQRSTUVWXYZ SET CURDRIVE=>%TEMP%.\CURDRV$.BAT
FOR %%A IN (CALL DEL) DO %%A %TEMP%.\CURDRV$.BAT
ECHO. %CURDRIVE%
cd\totalcmd
Totalcmd.exe %curdrive%:\ %curdrive%:\
Kind Regards,
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

wincmd.ini:
[Configuration]
UseIniInProgramDir=7

Batch file:
totalcmd.exe %commander_path% %commander_path%

I use batches myself but I don't create them to make things more complicated than they actually are. Maybe we are talking at cross purposes? I don't understand what your intention is with the batch file you just posted, reinventing the wheel?

FYI:
There is no "choice" command under 2000/XP.
32 Bit is no synonym for "GUI application".

Icfu
This account is for sale
egondu
Junior Member
Junior Member
Posts: 10
Joined: 2005-03-19, 16:26 UTC
Location: the Netherlands

Post by *egondu »

I use batches myself but I don't create them to make things more complicated than they actually are. Maybe we are talking at cross purposes? I don't understand what your intention is with the batch file you just posted, reinventing the wheel?
Could you also make a bat-file using %commander_path% with the panels set to the root of the (relative) drive (or any other directory outside the commander path)? (that was my intention).

Kind Regards,
Post Reply