Here's a working plugin for FlashTester
Just put FlashTester.exe and the following files in a directory in the plugin's folder
FlashTester.inf
; FlashTester.inf
; Created by homes32
[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="Disk -Diagnostic: FlashTester"
Enable=1
[WinntDirectories]
a=Programs\FlashTester,2
[SourceDisksFiles]
*.exe=a,,1
*.cmd=a,,1
[Append]
nu2menu.xml, FlashTester_nu2menu.xml
FlashTester_nu2menu.xml
<!-- Nu2Menu entry for FlashTester -->
<NU2MENU>
<MENU ID="Programs">
<MITEM TYPE="POPUP" MENUID="Disk Tools">Disk Tools</MITEM>
</MENU>
<MENU ID="Disk Tools">
<MITEM TYPE="POPUP" MENUID="Diagnostic">Diagnostic</MITEM>
</MENU>
<MENU ID="Diagnostic">
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\FlashTester\FlashTester.exe))" CMD="RUN" FUNC="@GetProgramDrive()\Programs\FlashTester\FlashTester.cmd">FlashTester</MITEM>
</MENU>
</NU2MENU>
FlashTester.cmd
@echo off
rem -------------------------------------------------------------------------
rem FlashTester.cmd - Script to start FlashTester from BartPE
rem Created by homes32
rem -------------------------------------------------------------------------
echo FlashTester.CMD: Starting...
setlocal
if "%temp%" == "" goto _err
if exist "%temp%\FlashTester\FlashTester.exe" goto _run
mkdir "%temp%\FlashTester"
xcopy /s "%~dp0*.exe" "%temp%\FlashTester\"
xcopy /s "%~dp0*.cmd" "%temp%\FlashTester\"
:_run
start %temp%\FlashTester\FlashTester.exe
goto _end
:_err
echo.
echo FlashTester.CMD: No temp variable set...
echo FlashTester.CMD: Try adding a ramdrive...
echo.
pause.
:_end
endlocal
This post has been edited by homes32: 07 April 2008 - 01:50 PM