Multi Commander > Support and Feedback
Crashed and lost button layout
JPCoetzee:
MC crashed as I was using the Button Editor to copy one button to another with CTRL pressed.
MC restarted automatically and the button panel has reset to default. Closing and reopening confirms. I have lost all my custom buttons. :'(
Are the button configurations backed up anywhere?
Mathias (Author):
Not if you did not do a backup of all configuration..
But Windows might have done it
If you go to
C:\Users\[USERNAME]\AppData\Roaming\MultiCommander\Config\MultiButtons.xml
right click and from the Windows Shell Context menu you might have a option named "Restore older version" or something like that.. Name might differ depending on name Windows version
you might also do Properties and there might be a Previous Versions tab.. But that is all depending on how things are setup in Windows for how much it should keep for old versions.
JPCoetzee:
This Multi-script creates a timestamped configuration backup in a specific directory. It's a bit quicker to use than Help > Backup/Restore if assigned to a hotkey, button or the "User commands" menu. You'll need to edit line 10:
--- Code: ---@var $backupdir = "C:\\Users\\jpcoetzee\\Documents\\Apps\\MultiCommander\\;
--- End code ---
to suit your own requirements.
--- Code: ---// 1. Create filename with data and time
// 2. Get location of config files
// 3. Use PackFile to create the backup
// ---------------------------------------
// 1. Create filename with data and time
@var $now = GetTime();
@var $datestamp = FormatDate( "yyyyMMdd" , $now );
@var $timestamp = FormatTime( "HHmmss" , $now );
@var $backupdir = "C:\\Users\\jpcoetzee\\Documents\\Apps\\MultiCommander\\;
@var $zipfilename = $backupdir + "MC_ConfigBackup_" + $datestamp + "_" + $timestamp + ".zip";
// 2. Get location of config files
@var $mcconfigdir = GetTagValue("${mcconfigpath}");
@var $mcuserdatadir = StrReplace( $mcconfigdir, "\Config" , "\UserData" );
// LogDump($datestamp)
// LogDump($timestamp)
// LogDump($backupdir)
// LogDump($zipfilename)
// LogDump($mcconfigdir);
// LogDump($mcuserdatadir);
// 3. Use PackFile to create the backup
PackFile($zipfilename, $mcconfigdir, "*.*", "zip", "NOWAIT, USEEXISTINGQUEUE");
PackFile($zipfilename, $mcuserdatadir, "*.*", "zip", "NOWAIT, USEEXISTINGQUEUE");
--- End code ---
I'm sure the wizards here could improve it!
HTH,
Mathias (Author):
Built in backup do not just take everything in the folder.. Just the file that belong to MC. and some other things..
But I think I can add so the internal method for backup/restore can be called from script with something like
--- Code: ---BackupConfiguration( $filename );
RestoreConfiguration( $filename );
--- End code ---
AlanJB:
--- Quote from: Mathias (Author) on November 01, 2023, 10:53:09 ---Built in backup do not just take everything in the folder.. Just the file that belong to MC. and some other things..
But I think I can add so the internal method for backup/restore can be called from script with something like
--- Code: ---BackupConfiguration( $filename );
RestoreConfiguration( $filename );
--- End code ---
--- End quote ---
Not the OP, but that would be very useful Mathias
Navigation
[0] Message Index
[#] Next page
Go to full version