LogFile in %COMMANDER_INI%

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Andy Solo
Junior Member
Junior Member
Posts: 29
Joined: 2019-03-15, 12:56 UTC

LogFile in %COMMANDER_INI%

Post by *Andy Solo »

Why aren't log files created in such paths?
LogFile=%COMMANDER_INI%\totalcmd.log
LogFile=%COMMANDER_INI%\tcftp.log

If you use the %TEMP% variable, everything works:
LogFile=%TEMP%\totalcmd.log
LogFile=%TEMP%\tcftp.log
Last edited by Andy Solo on 2021-02-11, 13:51 UTC, edited 1 time in total.
User avatar
Stefan2
Power Member
Power Member
Posts: 4158
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: LogFile in %COMMANDER_INI%

Post by *Stefan2 »

- open a DOS window from TC(!!!)
- execute: echo %COMMANDER_INI%
- what do you get? (that can't work)



Do you mean %commander_PATH% instead?

See https://www.ghisler.ch/wiki/index.php/Navigation




Or try %COMMANDER_INI%\..\totalcmd.log       maybe that works too? :mrgreen:




 
User avatar
Andy Solo
Junior Member
Junior Member
Posts: 29
Joined: 2019-03-15, 12:56 UTC

Re: LogFile in %COMMANDER_INI%

Post by *Andy Solo »

Hmm, this worked:
LogFile=%COMMANDER_INI%\..\totalcmd.log
LogFile=%COMMANDER_INI%\..\tcftp.log

Very strange and unusual...
User avatar
Dalai
Power Member
Power Member
Posts: 9388
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: LogFile in %COMMANDER_INI%

Post by *Dalai »

Not strange or unusual at all. %COMMANDER_INI% points to a file. A directory named %COMMANDER_INI% doesn't exist - and can't be created when a file with this name already exists, hence TC can't create a log file inside %COMMANDER_INI%.

What you probably want to use is %COMMANDER_PATH%.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Re: LogFile in %COMMANDER_INI%

Post by *gdpr deleted 6 »

Dalai wrote: 2021-02-11, 14:29 UTC What you probably want to use is %COMMANDER_PATH%.
Not necessarily. Depends on the actual circumstances of Andy Solo's TC setup.
%COMMANDER_PATH% is the directory of the TC executable, whereas %COMMANDER_INI%\.. refers to the directory of TC's INI files.
Post Reply