

© J.C. Kessels 2009
|
 |
 |
|
MyDefrag Forum
|
|
May 24, 2013, 01:55:55 am
|
Show Posts
|
|
Pages: [1]
|
|
1
|
MyDefrag v4 Forum / Questions and help / Change Script Because Of New MyDefrag Version
|
on: February 21, 2010, 06:49:00 pm
|
|
Greetings, I have a simple script that I created some months ago. The purpose of this script is to defrag an external USB interface hard-drive that I use to backup various files. The disk contains mainly *.zip files that are 200,000 KB in size. I'm wondering if my script should be updated to exploit newer features in MyDefrag. The script is below. Any suggestions will be appreciated.
Regards, Jeff
====================== # MyDefrag v4.0 script: Defragment Backup Hard-drives #
Title('Backup Drives Defrag (BFP)') Description("Defragment our backup (non-system) drives.")
/* Automatically exit when the script has finished. */ WhenFinished(exit)
/* Set the CPU Priority */ ProcessPriority(Normal)
WriteLogfile("!LogFile!","LogHeader")
VolumeSelect CommandlineVolumes() VolumeActions
AppendLogfile("!LogFile!","LogBefore")
FileSelect all FileActions Defragment(Fast) FastFill() FileEnd
/* Write the "after" statistics to the logfile. See the "Settings.MyD" file for the definition of the "LogAfter" string. */ AppendLogfile("!LogFile!","LogAfter")
VolumeEnd
/* Write the footer to the logfile. See the "Settings.MyD" file for the definition of the "LogFooter" string. */ AppendLogfile("!LogFile!","LogFooter")
|
|
|
|
|
2
|
MyDefrag v4 Forum / Questions and help / Re: Best Script to Use on External (USB) Backup Drive?
|
on: October 27, 2009, 12:51:32 am
|
|
Is this what you had in mind?
================================= # MyDefrag v4.0 script: Defragment Backup Hard-drives #
Title('Backup Drives Defrag (BFP)') Description("Defragment our backup (non-system) drives.")
/* Automatically exit when the script has finished. */ WhenFinished(exit)
WriteLogfile("!LogFile!","LogHeader")
VolumeSelect CommandlineVolumes() VolumeActions
AppendLogfile("!LogFile!","LogBefore")
FileSelect all FileActions Defragment(Fast) FastFill() FileEnd
AppendLogfile("!LogFile!","LogAfter")
VolumeEnd
|
|
|
|
|
3
|
MyDefrag v4 Forum / Questions and help / How Do I Make MyDefrag Script Exit When Done or Not Exit?
|
on: October 22, 2009, 06:26:24 pm
|
|
Greetings,
My understanding is that the Daily script causes MyDefrag to exit automatically when done, but the Weekly and Monthly scripts cause MyDefrag to NOT exit. I've examined the scripts and I can't see any command in the scripts that control the exit or stay open behavior.
How do I control whether or not MyDefrag stays open or closes on completion?
Regards,
Jeff
|
|
|
|
|
5
|
MyDefrag v4 Forum / Questions and help / Best Script to Use on External (USB) Backup Drive?
|
on: October 21, 2009, 11:42:17 pm
|
|
Greetings, We have an external hard-drive (USB interface) that we use for backups. We want to use MyDefrag to keep this backup drive optimized. Here are some important facts about this external hard-drive:
Interface: USB 2.0 Size: 931 GB Current Usage: 621 GB Encryption: TrueCrypt
Most of the files (both by number of files and size) on this external drive are zip files with a size of 200,000 KB.
A couple of times a week, the oldest files on the drive are deleted and new files are copied to the drive.
I've run both the daily and weekly MyDefrag scripts. The daily script takes 3-4 hours to run, but the weekly script literally takes 2-3 days.
Which script would you recommend I use? Daily? Weekly? Other?
Regards, Jeff
|
|
|
|
|
6
|
MyDefrag v4 Forum / Questions and help / Re: Defrag just one drive on command?
|
on: October 10, 2009, 07:07:08 pm
|
MyDefrag is compatible with TrueCrypt, but TrueCrypt disks are not always visible to MyDefrag. For example, Truecrypt on Windows 2000. Also certain TrueCrypt versions.
That explains it for me -- I'm running Windows 2000 with the latest version of TrueCrypt. Anything I can do to make the drive visible? I have tried forcing the drive to be defraged using the commandline: MyDefrag -r scriptfile G: However, MyDefrag just pops up for a moment and then closes down... Jeff
|
|
|
|
|
7
|
MyDefrag v4 Forum / Questions and help / Re: Defrag just one drive on command?
|
on: October 10, 2009, 06:10:49 pm
|
|
I have an almost exact situation as Gen. Nuisance, Ret.
I have an external hard-drive (USB interface) that I want to defrag. When I run MyDefrag (v4.2.1) without any commandline parameters, the menu pops up to allow me to choose the script and the drives. However, my external hard-drive does NOT even appear on the MyDefrag menu.
Some further information regarding this external hard-drive:
1) The hard drive appears as a "Local Disk" under "My Computer".
2) The hard-drive is an encrypted drive (using TrueCrypt).
Is there anything I can do to get MyDefrag to recognize my external hard-drive?
Regards, Jeff
|
|
|
|
|
9
|
MyDefrag v4 Forum / Questions and help / Running MyDefrag from Shared Network Drive?
|
on: October 09, 2009, 05:12:49 pm
|
|
Greetings, I want to want multiple workstations to run MyDefrag from a shared network drive.
I've installed MyDefrag on a workstation, and then copied the MyDefrag folder to the shared network drive Q:\bin\MyDefrag\. Using a customized macro defined on the commandline, I've instructed MyDefrag to save the logfile in a unique location for each workstation.
However, I can't seem to find any way to control the location of the following two files located in the MyDefrag folder:
MyDefrag.dat MyDefrag.debuglog If I have multiple workstations running MyDefrag at roughly the same time, won't they all be stepping on each other as they all try to use the same two files above? If so, is there any way I can control the location of these two files by specifying a commandline macro? Or, is my only option to have each workstation running a local copy of MyDefrag instead of a shared network location?
Regards, Jeff
|
|
|
|
|
11
|
MyDefrag v4 Forum / Requests for new features / Re: Implement JkDefrag Commandline Option Into MyDefrag: -l <logfile>
|
on: October 08, 2009, 06:56:05 pm
|
|
Hi Jeroen, I believe you are saying that I can pass in a run-time customized logfile name by the macro commandline (-m)? Is that correct? I tried this and it seemed to work:
1) I used the commandline: MyDefrag.exe -r OptimizeDaily.MyD -m LogFile="Q:\dir1\dir2\mycustomlogfile.txt"
2) In the script file OptimizeDaily.MyD, I changed "MyDefrag.log" to "!LogFile!"
It seemed to work just as I wanted it to. Is this what you had in mind?
Jeff
|
|
|
|
|
|
 |