Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 25, 2013, 08:35:07 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: Fatal error msg upon starting as Scheduled Task at system boot  (Read 756 times)
gkitf16
Newbie
*
Posts: 2


View Profile
« on: April 02, 2010, 03:51:17 pm »

I recently updated to MyDefrag version 4.2.9, and now each time it runs as a Scheduled Task, I get the following Fatal Error red X warning box:

Fatal error, cannot execute the script: Syntax error at line 28 column 19.
The command '(' is invalid, only the following commands are valid at this point:
=

The application begins running, but dies when this box expires. If you click the OK before the box expires, it continues on fine, but I prefer to have the defrag run unattended in the background, which it did with the previous version 4.2.7 without any problems.
Logged
jonib
JkDefrag Hero
*****
Posts: 810


View Profile
« Reply #1 on: April 02, 2010, 03:57:54 pm »

I recently updated to MyDefrag version 4.2.9, and now each time it runs as a Scheduled Task, I get the following Fatal Error red X warning box:
Scripts from older MyDefrag versions often are not compatible with new versions, you need to change the Scheduled Task to use a script included with the new MyDefrag or if the script is a custom script it needs to be updated to the new syntax. What has changed between versions you can read under Version history here.

jonib
Logged

gkitf16
Newbie
*
Posts: 2


View Profile
« Reply #2 on: April 02, 2010, 08:53:17 pm »

Thanks, must have been an update in the code somewhere. Works great now, just deleted the old script and selected the new Daily Optimize routine in the current version.

I also noticed that there used to be 5 zones during a scan, now there is a sixth. Always wondered why it breaks the drive into zones, instead of working on it as a single monolithic zone. Is greater speed/efficiency the reason? Or dealing with only certain file types in each zone? Just curious! Always wanting to know a bit more about how these things tick!
Logged
jeroen
Administrator
JkDefrag Hero
*****
Posts: 7155



View Profile WWW
« Reply #3 on: April 02, 2010, 09:24:11 pm »

Always wondered why it breaks the drive into zones, instead of working on it as a single monolithic zone.
Quote from the MyDefrag homepage: MyDefrag organizes files into zones, such as directories, Windows files, files used while booting, regular files, and rarely used files. The most accessed files are placed at the beginning of the harddisk, and files that are commonly used together are placed in close proximity to each other. This results in a dramatic speed increase, and is in fact more important than defragmentation. The program comes with scripts with a zone organization suitable for most users, power users can customize the zones through scripts.
Logged
Darlis
JkDefrag Hero
*****
Posts: 1710


View Profile WWW
« Reply #4 on: April 02, 2010, 09:28:25 pm »

Open a script in notepad (right click > edit) and take a look at it. Jeroen has put lots of comments in the scripts, so that you don't need to learn the script language.

Code:
  /* Zone 1: Place the MFT and some other special NTFS files. */
  /* Zone 2: Directories. */
  /* Zone 3: files used when booting, and a gap. */
  /* Zone 4: files used by the most used programs, and a gap. */
  /* Zone 5: regular files and a gap. */
  /* Zone 6: spacehog files (less important files that take up a lot of space). */
Zone 4 is new since 4.2.8.
Logged

Need help creating a script? Try MyDefrag Script Creator.
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!