Ultimately I am looking for a way to copy the wincmd.ini file periodically to another location.
I hope someone can help me out, as I'm all out of ideas to try. Please let me know if you need any more information from me.
Setup
I have Total Commander (x64) 9.20 provided by my employer. It is installed through some enterprise deployment application and stored in:
Code: Select all
C:\Users\username\AppData\Local\Microsoft\AppV\Client\Integration\some-unique-id\Root\VFS\ProgramFilesX64\totalcmd.920
Code: Select all
C:\Users\username\AppData\Roaming\GHISLER\wincmd.ini
C:\Users\username\AppData\Roaming\GHISLER\wcx_ftp.ini
My final goal is to automatically back-up the TC settings to a network drive using robocopy.
For those unfamiliar with robocopy, it is a windows command line utility that can copy files. It requires a source and destination folder.
I've set the source folder to be:
Code: Select all
C:\Users\username\AppData\Roaming\GHISLER
The folder is copied successfully, but when I inspect the folder contents the wincmd.ini file is completely different from the one I see when in TC I go to "Configuration -> Change Settings File Directly". The wincmd.ini file that is copied appears to be from an older TC version (v8.51).
The strange thing is that if I go to C:\Users\username\AppData\Roaming\GHISLER in TC, I see the wincmd.ini shown by TC's "Change Settings File Directly" option.
If I go to C:\Users\username\AppData\Roaming\GHISLER in Windows Explorer, I see the wincmd.ini that was copied by robocopy.
It appears that there are two version of the C:\Users\username\AppData\Roaming\GHISLER folder for some reason: one accessible through TC and one accessible through other applications.
What I've tried
Click "Show" to see the troubleshooting steps I've tried
First I have deleted the GHISLER folder from C:\Users\username\AppData\Roaming through Windows Explorer. All other attempts are done after that.
Attempt 1
If I open Total Commander and go to C:\Users\username\AppData\Roaming\GHISLER, the folder still opens. It contains the correct wincmd.ini file.
If I try to go to that path in Windows Explorer, cmd.exe, Powershell or Git Bash I'm told that the path does not exist.
Attempt 2a
If I go to the C:\Users\username\AppData\Roaming\GHISLER folder in TC and in the command line panel in the lower part type:
Code: Select all
cmd.exe .
Code: Select all
type wincmd.ini
If I open cmd.exe through the Run command and then type
Code: Select all
cd C:\Users\username\AppData\Roaming\GHISLER
Attempt 2b
If I go to the C:\Users\username\AppData\Roaming\GHISLER folder in TC and in the command line panel in the lower part type:
Code: Select all
"c:\Program Files\Git\bin\bash.exe" --login
Code: Select all
cat wincmd.ini
If I open Git bash from the Windows start menu and then type
Code: Select all
cd /c/Users/username/AppData/Roaming/GHISLER
Attempt 3
I found that there is an AppData folder in the AppV workspace. I thought perhaps it's somehow linked into my regular %APPDATA% folder.
The path is:
Code: Select all
C:\Users\username\AppData\Local\Microsoft\AppV\Client\Integration\some-unique-id\Root\VFS\AppData\GHISLER\
If I open it in in Windows Explorer, cmd.exe, Powershell or Git Bash I see some outdated wincmd.ini file with a modified date of a few months back.
How can I find, show and copy the real wincmd.ini file used by TC, with a program that is not TC (e.g. cmd.exe, Powershell or Git bash)?