Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 25, 2013, 02:57:17 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: SetFileColor  (Read 1295 times)
Dezeer
JkDefrag Supporter
***
Posts: 12


View Profile
« on: July 17, 2009, 05:16:44 pm »

The newest mydefrag 4.0 doesn't recognize the SetFileColor command for some reason.


* Setfilecolor.png (17.56 KB, 500x497 - viewed 232 times.)
Logged
kandro
JkDefrag Hero
*****
Posts: 72


MyDefragGUI at www.mydefrag.net


View Profile WWW
« Reply #1 on: July 17, 2009, 05:31:04 pm »

Works fine for me.

See Formal script grammar for positioning:

<VolumeAction>
::= 'ReclaimNtfsReservedAreas' '(' <Settings> ')'
  | 'FileSelect' <FileBooleans> 'FileActions' <FileActions> 'FileEnd'
  | 'MakeGap' '(' <MakeGapOptions> ')'
  | 'DismountVolume' '(' ')'
  | 'DeleteJournal' '(' ')'
  | <Setting>
  | 'SetFileColor' '(' <FileBooleans> ',' <FileColorBooleans> ',' <Number> ',' <Number> ',' <Number> ')'
Logged

It doesn't mtater, in wihch seqenuce the ltteres in wodrs aeappr. The mian pnoit is taht the frsit and the lsat lteter is crroect. The remnaider can be ttalloy wrnog neevrtehlses you can raed it withuot porbelms.
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #2 on: July 17, 2009, 06:15:13 pm »

The newest mydefrag 4.0 doesn't recognize the SetFileColor command for some reason.
SetFileColor is not allowed as a FileAction (because the FileBoolean would interfere). You have to use it outside a FileSelect-FileActions-FileEnd structure.
Logged
Harald
JkDefrag Senior
****
Posts: 33


View Profile
« Reply #3 on: July 17, 2009, 06:22:39 pm »

The newest mydefrag 4.0 doesn't recognize the SetFileColor command for some reason.
SetFileColor is not allowed as a FileAction (because the FileBoolean would interfere). You have to use it outside a FileSelect-FileActions-FileEnd structure.
It seems then that the FILESTATE "selected" becomes meaningless since no files are selected outside FILESELECTS.
(quoting from the manual: "Files go through the following stages as they are being placed in zones: from "not(Selected) and not(Processed)", to "Selected and not(Processed)", to "Selected and Processed", to "not(Selected) and Processed".")
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #4 on: July 17, 2009, 06:57:16 pm »

It seems then that the FILESTATE "selected" becomes meaningless since no files are selected outside FILESELECTS.
Files have 16 different states (all the possible combinations of Fragmented, Movable, Selected, and Processed), and each state has it's own color. SetFileColor is used to setup all these colors. Usually you will setup the same colorset for all files, but it is possible (with the FileBoolean) to setup a different colorset for different sets of files.

Setting colors inside the FileAction is not possible because the actions will change the state of the files. For example files that become unfragmented while the Defragment action is being executed. Colors therefore have to be setup earlier, before the fileactions.
Logged
Dezeer
JkDefrag Supporter
***
Posts: 12


View Profile
« Reply #5 on: July 17, 2009, 07:08:44 pm »

The newest mydefrag 4.0 doesn't recognize the SetFileColor command for some reason.
SetFileColor is not allowed as a FileAction (because the FileBoolean would interfere). You have to use it outside a FileSelect-FileActions-FileEnd structure.
Ok, then it can't be put in the settings file?
Logged
Harald
JkDefrag Senior
****
Posts: 33


View Profile
« Reply #6 on: July 17, 2009, 08:15:57 pm »

Setting colors inside the FileAction is not possible because the actions will change the state of the files. For example files that become unfragmented while the Defragment action is being executed. Colors therefore have to be setup earlier, before the fileactions.
OK, that makes sense. Thanks for clearing up my misunderstanding.
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #7 on: July 17, 2009, 08:54:24 pm »

Ok, then it can't be put in the settings file?
Ah! Now I get it. It should be possible to use SetFileColor in the settings file, yes, but I see that I forgot to add it there. At the moment you can only use it inside a VolumeSelect. Will be fixed in the next version.
Logged
rstarkov
JkDefrag Supporter
***
Posts: 12


View Profile
« Reply #8 on: March 12, 2011, 03:45:18 pm »

Ah! Now I get it. It should be possible to use SetFileColor in the settings file, yes, but I see that I forgot to add it there. At the moment you can only use it inside a VolumeSelect. Will be fixed in the next version.

It would be really cool to place SetFileColor with FileBooleans inside the Settings file - doesn't seem to be possible in 4.3.1.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!