Help - Search - Members - Calendar
Full Version: MyDefrag
The CD Forum > Bart's PE Builder > Plugins
PyrK
This is all of 5 minutes of work, but I thought I'd share it anyways. I don't have my own website up so until it goes down here's a quick download link http://www.sendspace.com/file/0okabn

If the download doesn't work you can make it yourself you just need to copy the following to the files folder of your plugin's directory:
MyDefrag.exe
fastOptimize.myD
Settings.myD
mydefrag.cmd (last posted)

MyDefrag.inf
CODE
; PE Builder v3 plug-in INF file
; by Byrdman (aka PyrK)

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="MyDefrag"
Enable=1
Help="MyDefrag.htm"

[WinntDirectories]
a="Programs\MyDefrag",2

[SourceDisksFiles]
files\MyDefrag.exe=a,,1
files\FastOptimize.MyD=a,,1
files\Settings.MyD=a,,1
files\mydefrag.cmd=a,,1

[Software.AddReg]
; Start Menu Shortcut
0x2,"Sherpya\XPEinit\Programs","Utilities\MyDefrag","%SystemDrive%\programs\MyDefrag\MyDefrag.exe||%SystemDrive%\programs\MyDefrag\MyDefrag.exe,0"

[Append]
nu2menu.xml, MyDefrag_nu2menu.xml

[SetValue]
; reatogoMenu-Entry for MyDefrag-v4_1_2
"reatogoMenu.ini", "Entries", "MyDefrag", "%SystemDrive%\Programs\MyDefrag\MyDefrag.exe||%SystemDrive%\Programs\MyDefrag\MyDefrag.exe"


MyDefrag.htm
CODE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<i>PE Builder v3 plugin</i>
<hr>
<h1>MyDefrag<br>
</h1>
MyDefrag(formerly known as JKDefrag) is a powerful defragmentation tool.
<br>
<br>
<hr>
<p>Plugin by Byrdman<a href="http://robles.clunet.edu/~abyrd"> http://robles.clunet.edu/~abyrd</a>
</p>
</body>
</html>



MyDefrag_nu2menu.xml
CODE
!-- Nu2Menu entry -->
<NU2MENU>
    <MENU ID="Programs">      
    <MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\MyDefrag\MyDefrag.exe))" CMD="RUN" FUNC="@GetProgramDrive()\Programs\MyDefrag\MyDefrag.exe">MyDefrag</MITEM>
    </MENU>
</NU2MENU>


mydefrag.cmd
CODE
copy  %SystemDrive%\Programs\MyDefrag\* %Temp%
start %temp%mydefrag.exe
Ed_P
Thank you PyrK. Does the utility need to always run from the RAM drive or only when run from a CD?
oscar
There is a little bug in the shortcut (.exe instead of .cmd) but it is OK if FBWF is enabled.

[Software.AddReg]
; Start Menu Shortcut
0x2,"Sherpya\XPEinit\Programs","Utilities\MyDefrag","%SystemDrive%\programs\MyDefrag\MyDefrag.exe (.cmd)|%SystemDrive%\programs\MyDefrag\MyDefrag.exe,0"

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.