Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 20, 2013, 05:36:08 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1 ... 4 5 [6]
  Print  
Author Topic: Which script for Windows files  (Read 8887 times)
joboxers
JkDefrag Hero
*****
Posts: 61


View Profile
« Reply #75 on: June 24, 2010, 09:26:55 am »

i forgot to say, i run at first a script which moved all video files to end of the disk

Logged
joboxers
JkDefrag Hero
*****
Posts: 61


View Profile
« Reply #76 on: June 24, 2010, 09:37:21 am »

forced fill sounds better then fastfill

in my case i think forcedfill is a better choice, maby slower but no problem for me, its avoid any gap
Logged
Darlis
JkDefrag Hero
*****
Posts: 1707


View Profile WWW
« Reply #77 on: June 24, 2010, 09:43:58 am »

You already have SortByName as action. You don't need another action.
If you don't want to sort, you should use
Defragment()
FastFill(WithShuffling)


ForcedFill can fragment files again.
Logged

Need help creating a script? Try MyDefrag Script Creator.
poutnik
JkDefrag Hero
*****
Posts: 1105


View Profile
« Reply #78 on: June 24, 2010, 09:55:06 am »


hich one, ones do you this would be good for my script ( jpg files )

For this week only the jpg files are important, i need the fastest acces to them and future frangentation should be solved. These jpg files will never change or edited.


In your shoes, I would do this:

  # First zone: METART files
  FileSelect
    FullPath("J:\$MUSIC\METART\","*")
    /*variant: DirectoryName("METART"), faster, but can chose other folders of same name*/
  FileActions
    Defragment(Fast)
    FastFill(WithShuffling)
  FileEnd

  The same for other folders.

  Choose a right folder level for fileselect,
  for a zone to be neither too small neither too big.

But anyway, try more reading, thinking and trying yourself.

You would learn much more and faster by that way,
than if asking and requesting. During the time, spent on this thread,
you would be able to learn all what you need.
Logged

It can be fast, good or easy. You can pick just 2 of them....
Treating Spacehog zone by the same effort as Boot zone is like cleaning a garden by the same effort as a living room.
joboxers
JkDefrag Hero
*****
Posts: 61


View Profile
« Reply #79 on: June 24, 2010, 10:00:56 am »

poutnik:

and what about sort ascending? You did not wrote it

The metart folder have about 1200 subfolder. Each subfolder have jpeg files which are named by numbers. ıs it not logic to sort them ascending because when i open a jpeg files and want to go to next file it sounds logic that the next file should be next to this file.
Logged
Darlis
JkDefrag Hero
*****
Posts: 1707


View Profile WWW
« Reply #80 on: June 24, 2010, 10:09:47 am »

    FullPath("J:\$MUSIC\METART\","*")
    /*variant: DirectoryName("METART"), faster, but can chose other folders of same name*/
Another (in this case better) variant: DirectoryPath("J:\$MUSIC\METART")

@joboxers: Of course you can use SortByName(Ascending). We got confused after you wanted to use ForcedFill, which does not sort.

Edit: I just noticed: DirectoryName("J:\$MUSIC\***"), that you have in your script, would select nothing. You  have to use DirectoryPath here.
« Last Edit: June 24, 2010, 10:11:25 am by Darlis » Logged

Need help creating a script? Try MyDefrag Script Creator.
poutnik
JkDefrag Hero
*****
Posts: 1105


View Profile
« Reply #81 on: June 24, 2010, 10:16:30 am »

poutnik: and what about sort ascending? You did not wrote it

The metart folder have about 1200 subfolder. Each subfolder have jpeg files which are named by numbers. ?s it not logic to sort them ascending because when i open a jpeg files and want to go to next file it sounds logic that the next file should be next to this file.

I have written if I were in your shoes....    Smiley  If I omitted SortBy command, than I would not use it. BTW why music folder, if JPGs ?

Speculative sorting gain approarch supposes :

a disk head patiently waits between previous and next file,
no need to read any metafile info needed for that file
and there are not disk read/write demands during JPG viewing.

I guess it is far from the truth. It is applicable to machine boot file reading with usage of prefetcher feature. But hardly for manual sequential reading of the files. Access to these files would be driven by data transfer, not file access, it it were not bottlenecked by JPG Inverse Discrete Cosine Transformation processing.


Logged

It can be fast, good or easy. You can pick just 2 of them....
Treating Spacehog zone by the same effort as Boot zone is like cleaning a garden by the same effort as a living room.
poutnik
JkDefrag Hero
*****
Posts: 1105


View Profile
« Reply #82 on: June 24, 2010, 10:18:03 am »

Another (in this case better) variant: DirectoryPath("J:\$MUSIC\METART")

sure, you are right, I have not reminded it myself while writing.
Logged

It can be fast, good or easy. You can pick just 2 of them....
Treating Spacehog zone by the same effort as Boot zone is like cleaning a garden by the same effort as a living room.
poutnik
JkDefrag Hero
*****
Posts: 1105


View Profile
« Reply #83 on: June 24, 2010, 11:05:21 am »


I guess it is far from the truth. It is applicable to machine boot file reading with usage of prefetcher feature. But hardly for manual sequential reading of the files. Access to these files would be driven by data transfer, not file access, it it were not bottlenecked by JPG Inverse Discrete Cosine Transformation processing.

Try to measure how fast is the viewer loading the images ( more in serie if hard to a single ).
Then try to estimate, how fast is the computer loading those files, before passing them to a viewer to process them.

E.g. 4-8 MB JPEG file can on slower computer take few seconds to display.
That time is enough for computer to transfer dozens or even hundreds of MBs.

At such circumstances sorting such files for better access is not wise.

Especially when accessing them takes typically 10x less time than transferring them,
what was already said to be much faster then decoding.
Logged

It can be fast, good or easy. You can pick just 2 of them....
Treating Spacehog zone by the same effort as Boot zone is like cleaning a garden by the same effort as a living room.
joboxers
JkDefrag Hero
*****
Posts: 61


View Profile
« Reply #84 on: June 24, 2010, 11:32:13 am »

Poutnik,

i am sorry but do not always understand whay you mean. Your technical level is much higher then mine, i just understand 50% of that what you mean Smiley

If i would have the technical experiance like you both, i would make 20 different scripts for different usage.

This would avoid many forum users question and from this scrips peoples could make their own modification.

Scrips for storage disk with media files for example, or office files, for backup files
Scrips for windows xp, windows 7
Scrips to move folders / files to specified place of disk ( end or beginning )
Scrps for zones...


I mean different versions with different file actions and what each file action effect.

Ok, i know you will again say read the manuals, but practic is always better then the book

And not everything is mentioned in the manuals.

Samples should be written as full script, like a collection.

Logged
poutnik
JkDefrag Hero
*****
Posts: 1105


View Profile
« Reply #85 on: June 24, 2010, 11:58:34 am »

I have said read, think and try. Practice included Smiley
BTW theory is practice of many people, helping avoiding of basic mistakes.


Logged

It can be fast, good or easy. You can pick just 2 of them....
Treating Spacehog zone by the same effort as Boot zone is like cleaning a garden by the same effort as a living room.
poutnik
JkDefrag Hero
*****
Posts: 1105


View Profile
« Reply #86 on: June 24, 2010, 12:09:45 pm »


i am sorry but do not always understand whay you mean. Your technical level is much higher then mine, i just understand 50% of that what you mean Smiley

OK  Smiley, so by other words.

JPG processing to be viewed is much slower than JPG file reading, whereever JPG is placed
AND
JPG file data reading is significantly slower ( takes more time) than JPG file accessing, whatever is JPG placement ordering.

E.g. after JPG folder sorting, JPG would be displayed  not after 2 seconds, but after 1.995 seconds. ( similar for batch JPG processing like mass resize).

Is the gain worthy of disk sortBy torture ?
« Last Edit: June 24, 2010, 05:00:16 pm by poutnik » Logged

It can be fast, good or easy. You can pick just 2 of them....
Treating Spacehog zone by the same effort as Boot zone is like cleaning a garden by the same effort as a living room.
joboxers
JkDefrag Hero
*****
Posts: 61


View Profile
« Reply #87 on: June 24, 2010, 04:05:10 pm »

i know because of the compressing methode, it is different in bmp
Logged
poutnik
JkDefrag Hero
*****
Posts: 1105


View Profile
« Reply #88 on: June 25, 2010, 12:30:28 pm »

......
If i would have the technical experiance like you both, i would make 20 different scripts for different usage.
This would avoid many forum users question and from this scrips peoples could make their own modification.

Scrips for storage disk with media files for example, or office files, for backup files
Scrips for windows xp, windows 7
Scrips to move folders / files to specified place of disk ( end or beginning )
Scrps for zones...

I mean different versions with different file actions and what each file action effect.

Such personal custom scripts are often not for general usage, being tailored to particular partition.
And - according to personal preferences, that others may not understand or agree.

There is no best script at all, there could be good scripts,
according to requirements, demands, wishes and needs of both you and your disk.

Modifications of such scripts need some level of understanding of disk events and MyDefrag scripting. Otherwise they can be twisted and misused.

Once one has such knowledge, better then overtaking scripts of others
is to begin with general scripts, implementing ideas from forum, manual, and script fragments.

I suggest you googling forum with parameters  keywords  site:mydefrag.com

Better than thinking  what I want a script to do for me is  deep thinking why I want to do that ? Are there really good reasons for that ?
What is real gain provided by action ?
What is cost of the needed effort  to perform it ?
what would be stability of action result ?

And keep trying, as you prefer practice.
Logged

It can be fast, good or easy. You can pick just 2 of them....
Treating Spacehog zone by the same effort as Boot zone is like cleaning a garden by the same effort as a living room.
craigkent
Newbie
*
Posts: 1


View Profile
« Reply #89 on: July 07, 2010, 07:52:46 am »

java script and VB script both are good.
i use VB script.
Logged

Pages: 1 ... 4 5 [6]
  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!