How to Highlight all folders with a specific color?
Moderators: white, Hacker, petermad, Stefan2
How to Highlight all folders with a specific color?
Hello,
I woluld like to highlight all folders with a specific colur, but I'm not able to indicate in "Define colors by file type" how to select all folders.
Is it possible? Thanks
I woluld like to highlight all folders with a specific colur, but I'm not able to indicate in "Define colors by file type" how to select all folders.
Is it possible? Thanks
Hi fc62
Try Configuration > Colors > Define colors by file type > Add
In dialog box, choose Config button, then in "Config selection" dialog box, choose second tab (Add...), check Attribs, check Directory, then Save button. Give it "directories" name for example.
Now you go back to previous dialog box. Click on Confirm. Finally choose a color in the palette, confirm twice.
Sorry if english is not your language, mine neither, so I had to guess button captions.
Try Configuration > Colors > Define colors by file type > Add
In dialog box, choose Config button, then in "Config selection" dialog box, choose second tab (Add...), check Attribs, check Directory, then Save button. Give it "directories" name for example.
Now you go back to previous dialog box. Click on Confirm. Finally choose a color in the palette, confirm twice.
Sorry if english is not your language, mine neither, so I had to guess button captions.
2fc62
That's a quite advanced task. The most appropriate content plugin for this task would be 'Shortcut' ( http://totalcmd.net/plugring/shortcut.html ). It has a field 'Path' but I'm not aware of any ways to find out if this is a folder or a file.
That's a quite advanced task. The most appropriate content plugin for this task would be 'Shortcut' ( http://totalcmd.net/plugring/shortcut.html ). It has a field 'Path' but I'm not aware of any ways to find out if this is a folder or a file.
Perhaps script content plugin may be used with approriate script, but I don't know how fast it will be.
Also regular expression may help to filter some file paths in Shortcut.Path field (names with dots etc) but it is not reliable...
Also regular expression may help to filter some file paths in Shortcut.Path field (names with dots etc) but it is not reliable...
Of course it can be solved in a content plugin (with script or natively) but I don't think it's the best solution. The use case here is another example of the lack of post-processing capabiltiies. We have just a few operators and that's it.
Using the result of one content plugin field value as input of another would be the best solution.
Using the result of one content plugin field value as input of another would be the best solution.
I just tried to use shortcut plugin but I didn't find any useful selection. Maybe script content plugin could be useful but I'm not skilled with scripts. My question is: If we right-click for attributes of a link to a Folder, in the Tab "Link", we can see a file called "Type:" (I’m not sure if the translation is correct because my system is in Italian). This field correctly indicate the origin type of the link: doc, txt, acrobat, etc. and it perfectly recognizes a folder link. It would be perfect to be able to detect that attribute but I don’t know how.
2fc62
1. Download and install AHK - https://autohotkey.com/
2. Download and install - WinScript Advanced Content Plugin http://ghisler.ch/board/viewtopic.php?t=44032
3. Download and copy to the folder Scripts in home dir of the WinScript Advanced Content Plugin script Folder_Test.ahk - http://rgho.st/8ss7L49NQ
4. Open in any editor options.ini in the home dir of the WinScript Advanced Content Plugin and add |Folder_Test to the end of ActiveScripts= line in section [Script]
5. Add section
[Folder_Test]
Script=Folder_Test.ahk
content=Folder_Test
extensions=lnk
FoldersPaths=0
to options.ini
6. In section [ExeScriptParsers] find string ahk= and write here the correct path to AHK executable
7. Configuration > Colors > Define colors by file type > Add or edit you defenition for LNK files:
7.1 Search for - *.*
7.2 go to Plugins tab and choose winscriptsadv plugin, property - Folder_Test, OP - contains, value - 1
Save all and enjoy!
1. Download and install AHK - https://autohotkey.com/
2. Download and install - WinScript Advanced Content Plugin http://ghisler.ch/board/viewtopic.php?t=44032
3. Download and copy to the folder Scripts in home dir of the WinScript Advanced Content Plugin script Folder_Test.ahk - http://rgho.st/8ss7L49NQ
4. Open in any editor options.ini in the home dir of the WinScript Advanced Content Plugin and add |Folder_Test to the end of ActiveScripts= line in section [Script]
5. Add section
[Folder_Test]
Script=Folder_Test.ahk
content=Folder_Test
extensions=lnk
FoldersPaths=0
to options.ini
6. In section [ExeScriptParsers] find string ahk= and write here the correct path to AHK executable
7. Configuration > Colors > Define colors by file type > Add or edit you defenition for LNK files:
7.1 Search for - *.*
7.2 go to Plugins tab and choose winscriptsadv plugin, property - Folder_Test, OP - contains, value - 1
Save all and enjoy!
Last edited by Ovg on 2016-09-21, 07:33 UTC, edited 2 times in total.
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
#259941, TC 11.01 x64, Windows 7 SP1 x64
Hmm, for me all working fine.
Did you have another rules for lnk files? If any exist, remove them.
I have recorded a test gif file for you - http://rgho.st/7xyLBW4hB
Did you have another rules for lnk files? If any exist, remove them.
I have recorded a test gif file for you - http://rgho.st/7xyLBW4hB
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
#259941, TC 11.01 x64, Windows 7 SP1 x64