Garbage in wincmd.ini: unwanted entries which I don't need at all

English support forum

Moderators: white, Hacker, petermad, Stefan2

Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: Garbage in wincmd.ini: unwanted entries which I don't need at all

Post by *Fla$her »

beb wrote: 2024-01-06, 06:42 UTC

Code: Select all

cmd=%comspec% /q/c for /r %temp% %%f in (wincmd.ini,wcx_ftp.ini) do del /q "%%~ff"
Why is there 'for', recursion, and a double percent sign?

Code: Select all

cmd=%comspec% /q/c del/q "%temp%\wincmd.ini" "%temp%\wcx_ftp.ini"
Overquoting is evil! 👎
User avatar
beb
Senior Member
Senior Member
Posts: 435
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: Garbage in wincmd.ini: unwanted entries which I don't need at all

Post by *beb »

Fla$her wrote: 2024-01-06, 09:40 UTC ...Why is there...
Because, it's been firs that came into my mind, and it worked :)
Fla$her wrote: 2024-01-06, 09:40 UTC

Code: Select all

cmd=%comspec% /q/c del/q "%temp%\wincmd.ini" "%temp%\wcx_ftp.ini"
Nice. Thanks.
Fla$her wrote: 2024-01-06, 05:55 UTC This is a bad idea for me...
It is not that bad at all to a dedicated user who still keeps going with a spark of pioneering and is committed to figuring out and differentiating what is actual garbage and what may be not, that said.

Edit
beb wrote: 2024-01-06, 10:18 UTC ...firs that came into my mind
It's coming out as a cute typo. I am not gonna mend it. lol.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: Garbage in wincmd.ini: unwanted entries which I don't need at all

Post by *Fla$her »

beb wrote: 2024-01-06, 10:18 UTC and it worked :)
%%f/%%~ff cannot work in cmd=.
beb wrote: 2024-01-06, 10:18 UTC It is not that bad at all to a dedicated user who still keeps going with a spark of pioneering and is committed to figuring out and differentiating what is actual garbage and what may be not, that said.
It's grandiloquently said, but I'm more concerned with the practical side of the issue. ;)
Overquoting is evil! 👎
User avatar
beb
Senior Member
Senior Member
Posts: 435
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: Garbage in wincmd.ini: unwanted entries which I don't need at all

Post by *beb »

Fla$her wrote: 2024-01-06, 10:49 UTC %%f/%%~ff cannot work in cmd=
Oh, yes. Sorry.
I fixed my original message, just in case.
Thanks.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Garbage in wincmd.ini: unwanted entries which I don't need at all

Post by *petermad »

I prefer to delete the ini files before I start TC with fresh ini-files instead of after. That way I still have the last used tempory ini files, that I can re-use or examine after the TC session is closed - so in my Extended Menu I use:

Code: Select all

[em_ext_newcommander2]
cmd=%COMSPEC% /C
param=del "%%COMMANDER_INI%%\..\wcmd_tmp_*.ini" && start "Total Commander Basic" "%%COMMANDER_EXE%%" /i="%%COMMANDER_INI%%\..\wcmd_tmp_tc.ini" /f="%%COMMANDER_INI%%\..\wcmd_tmp_ftp.ini"
menu=Open New Instance of Total Commander with Fresh ini Files
button=%COMMANDER_EXE%
iconic=1
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply