Hidden folder AppData is still visible in TC

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Hidden folder AppData is still visible in TC

Post by *MVV »

BTW we already have the cm_ConfigChangeIniFiles command and even the standard main menu item for it. :roll:
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Hidden folder AppData is still visible in TC

Post by *Stefan2 »

Here are a few Copy&Paste code for to creating buttons on TCs button bar for to help users to access there TC data:


Exchangeable Button-Code:
How to use: mark one code, copy to clipboard, next right click on TCs Button bar and choose 'Paste'.

In Line 2 is the command to execute, in Line 5 is the description.

Code: Select all

TOTALCMD#BAR#DATA
CD "%Commander_Path%"

%Commander_Path%\WCMICONS.DLL,2
CD %Commander_Path% - Switch to TC-ProgramFolder with current running TC.exe

0
-1

Code: Select all

TOTALCMD#BAR#DATA
CD "%AppData%\GHISLER\"

%COMMANDER_PATH%\TCMADMIN.EXE
CD to AppData GHISLER - Switch to Users settings-Folder (if not relocated to TCs ProgramFolder by INI switch)

0
-1

Code: Select all

TOTALCMD#BAR#DATA
"%Commander_Path%\TOOLs\NotePad2\notepad2.exe" "%Commander_Ini%"

%Commander_Path%\WCMICONS.DLL,28
EDIT %Commander_INI% - Open TC current used configuration file "wincmd.ini"

0
-1
I launch here Notepad2 from Florian Balmer, a portable tool I have in my own sub folder TOOLs, you may have to change that for you.
The most simple way would be to use build-in Notepad:     Notepad.exe %Commander_Ini%

Code: Select all

TOTALCMD#BAR#DATA
"%Commander_Path%\TOOLs\NotePad2\notepad2.exe" "%Commander_Ini%\..\usercmd.ini"

%Commander_Path%\WCMICONS.DLL,28
EDIT Usercmd.ini (if there, else create new) - Open file with Users own defined commands  

0
-1
Or maybe:   "%Commander_Path%\TOOLs\NotePad2\notepad2.exe" "%Commander_Path%\usercmd.ini"

Code: Select all

TOTALCMD#BAR#DATA
"%Commander_Path%\TOOLs\NotePad2\notepad2.exe" "%Commander_Path%\TOTALCMD.INC"

%Commander_Path%\WCMICONS.DLL,28
SHOW TOTALCMD.INC - Open file with list of TCs internal commands 

0
-1

Code: Select all

TOTALCMD#BAR#DATA
"%Commander_path%\TOOLs\NotePad2\notepad2.exe" "%Commander_Path%\_MyNotes.TXT"

%Commander_Path%\WCMICONS.DLL,34
EDIT "%Commander_Path%\_MyNotes.TXT" - Open text file for to store tips&tricks found on the forum or often used RegEx patterns


-1
Note: %Commander_Path% points to TCs ProgramFolder, if that is stored in C:\ProgramFiles you may have no write access to.
Instead of ""%Commander_Path%\_MyNotes.TXT" use "%AppData%\GHISLER\_MyNotes.TXT"


- - -

From post below by petermad
this button should always take you to the correct folder for TC's configuration files, no matter where they are located:

Code: Select all

TOTALCMD#BAR#DATA
cd %COMMANDER_INI%\..

%COMMANDER_EXE%,25
Open Folder Containing Total Commanders Configuration Files (by petermad)


-1



 HTH? :D
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Hidden folder AppData is still visible in TC

Post by *Dalai »

2Stefan2
TC's INI files are usually located in %AppData%, which is the same as %UserProfile%\AppData\Roaming, not %UserProfile%\AppData\Local.

I still think the best would be another button on the default button bar that changes directory to the %AppData% (or %AppData%\Ghisler) dir, as I already suggested a couple of months ago: viewtopic.php?p=403763#p403763

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
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Hidden folder AppData is still visible in TC

Post by *Stefan2 »

Dalai wrote: 2021-10-21, 11:39 UTC 2Stefan2
TC's INI files are usually located in %AppData%,

You are right, using %AppData%-only is more simple and thanks for pointing out the correct folder.




 
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Hidden folder AppData is still visible in TC

Post by *petermad »

Well, as stated before - this button should always take you to the correct folder for TC's configuration files, no matter where they are located:

Code: Select all

TOTALCMD#BAR#DATA
cd %COMMANDER_INI%\..

%COMMANDER_EXE%,25
Open Folder Containing Total Commanders Configuration Files

0
-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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Hidden folder AppData is still visible in TC

Post by *Dalai »

True. However, a button which changes directory to %AppData% could be useful in other cases since TC isn't the only application to save files there. Depends on what people complained about before AppData was shown permanently.

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
Post Reply