A reasonable way to switch sets of toolbars on/off
Posted: 20.05.2010, 06:17
I use different sets of toolbars on my FC depending on location (different network shares etc), monitor size (on my htpc I turn off all but essentials). I got tired of turning 6 toolbars on and off (using toolbars --> customize, toggle 12 checkboxes). So today I sat down and compared the freecommander.ini files and found a nice regex tool with a batch search and replace mode. Now I can switch all 6 toolbars on and off by running freecommander.ini through this program (TextCrawler v2.0 Beta). I did try multiple ini files but found it a lot of work to propagate changes whenever I tweaked the main setup.
There's a few clicks involved (load TextCrawler, load batch script, run it etc) so its probably not worth it if you only have 1 or 2 toolbars to toggle. But if you are like me and have several, it works out a fair bit quicker. I have posted in the authors forum begging for some command line options to run the script and pass in the target file (freecommander.ini). If the whole job could be done with a single batch file it would be very fast indeed (even for just 1 or 2 toolbars). Here are the 3 x regex commands I used to do the job (the file itself is generated by TextCrawler).
W4tch3r
---------------------------------------------------------------------------------------
//TextCrawler Script File 1.0
!Find
(\[Tools20(49|50|52|53|56|60|51|61|62|63|64|65)_TBarSettings\]\r\nShowToolbar)=1
!Replace
$1=3
!Options
!Find
(\[Tools20(49|50|52|53|56|60|51|61|62|63|64|65)_TBarSettings\]\r\nShowToolbar)=0
!Replace
$1=1
!Options
!Find
(\[Tools20(49|50|52|53|56|60|51|61|62|63|64|65)_TBarSettings\]\r\nShowToolbar)=3
!Replace
$1=0
!Options
!End
---------------------------------------------------------------------------------------
There's a few clicks involved (load TextCrawler, load batch script, run it etc) so its probably not worth it if you only have 1 or 2 toolbars to toggle. But if you are like me and have several, it works out a fair bit quicker. I have posted in the authors forum begging for some command line options to run the script and pass in the target file (freecommander.ini). If the whole job could be done with a single batch file it would be very fast indeed (even for just 1 or 2 toolbars). Here are the 3 x regex commands I used to do the job (the file itself is generated by TextCrawler).
W4tch3r
---------------------------------------------------------------------------------------
//TextCrawler Script File 1.0
!Find
(\[Tools20(49|50|52|53|56|60|51|61|62|63|64|65)_TBarSettings\]\r\nShowToolbar)=1
!Replace
$1=3
!Options
!Find
(\[Tools20(49|50|52|53|56|60|51|61|62|63|64|65)_TBarSettings\]\r\nShowToolbar)=0
!Replace
$1=1
!Options
!Find
(\[Tools20(49|50|52|53|56|60|51|61|62|63|64|65)_TBarSettings\]\r\nShowToolbar)=3
!Replace
$1=0
!Options
!End
---------------------------------------------------------------------------------------