Be more stealth portable, use AppData in TC-folder

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Be more stealth portable, use AppData in TC-folder

Post by *Stefan2 »

What about of this trick of some other portable apps?

If TC finds an writable folder named "AppData"
as sub folder of its own folder (where the TOTALCMD.EXE is)

then use that AppData-folder for ALL temp data, like
P:\ath to totalcmd\AppData\Local\GHISLER
P:\ath to totalcmd\AppData\Temp


and also keep the wincmd.ini in the TC-folder,
even without the"UseIniInProgramDir=" setting.


Also set or act like "pluginbasedir=%Commander_Path%\plugins\" (and what else is need)

Also, don't use or query the Registry to avoid side effects?

So all people has to do is creating that AppData sub folder to work most portable.



EDIT:

or make it more modular.
If "P:\ath to totalcmd\AppData\Local\GHISLER" exsists, use this local folder.
If "P:\ath to totalcmd\AppData\Temp"exsists, use this local folder.







 
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Be more stealth portable, use AppData in TC-folder

Post by *Hacker »

Sounds good.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7011
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Be more stealth portable, use AppData in TC-folder

Post by *Horst.Epp »

Good idea but I think the temp folder should not be redirected in this case.
Temp may be used from packer plugins for example and there may not be enough space on a small stick.
The temp dir is set per user and not restricted in any way even on corporate environments.
For the same reason thumbnails should be created inside of a temp dir tree.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3381
Joined: 2003-05-06, 11:46 UTC

Re: Be more stealth portable, use AppData in TC-folder

Post by *Sir_SiLvA »

Stefan2 wrote: 2023-05-06, 06:08 UTC What about of this trick of some other portable apps?
Support +1!
Horst.Epp wrote: 2023-05-06, 15:41 UTC Good idea but I think the temp folder should not be redirected in this case.
If you want that just DONT use an AppData-folder inside TC.
Hoecker sie sind raus!
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7011
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Be more stealth portable, use AppData in TC-folder

Post by *Horst.Epp »

Sir_SiLvA wrote: 2023-05-06, 16:05 UTC
Horst.Epp wrote: 2023-05-06, 15:41 UTC Good idea but I think the temp folder should not be redirected in this case.
If you want that just DONT use an AppData-folder inside TC.
Sorry I don't understand your strange answer.
Creating an AppData folder inside of the TC home dir is the basic idea behind that post.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3381
Joined: 2003-05-06, 11:46 UTC

Re: Be more stealth portable, use AppData in TC-folder

Post by *Sir_SiLvA »

Horst.Epp wrote: 2023-05-06, 16:27 UTC Sorry I don't understand your strange answer.
If you want me to write my answer in german so you can understand it, just say so :D
Horst.Epp wrote: 2023-05-06, 16:27 UTC Creating an AppData folder inside of the TC home dir is the basic idea behind that post.
Yes and when you create that folder you aknowledge that ALL data is stored inside TCs folder including temp-folder-data.

YOU want temp-folder-data excluded from the suggestion witch makes the suggestion itself void, so I propose YOU just dont use it if it gets implemented.
Hoecker sie sind raus!
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7011
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Be more stealth portable, use AppData in TC-folder

Post by *Horst.Epp »

Sir_SiLvA wrote: 2023-05-06, 16:44 UTC YOU want temp-folder-data excluded from the suggestion witch makes the suggestion itself void, so I propose YOU just dont use it if it gets implemented.
I don't need any new functon here. :D
I use since many years a fully portable TC version.
Now on SDD, for many years in corporate environments on USB sticks.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
Post Reply