@echo off rem ©2007-2009 by Lance http://www.pendrivelinux.com rem 7-Zip Copyright ©1999-2007 Igor Pavlovis http://7-zip.org cls echo. echo ===================================================================== echo File preparation script used to create a USB Xubuntu 9.04 Flash Drive echo This script was brought to you by Pendrivelinux.com echo ===================================================================== echo. echo This batch file will extract your Xubuntu 9.04 ISO to your flashdrive echo using 7-Zip. It will then continue to organize all files echo preparing them for USB usage. Once this tool has finished, a user echo should be able to boot Xubuntu 9.04 from the USB flash device. echo. echo. echo Please note that this batch file and any included software is being echo provided as is, without warranty, in hopes that it will be useful. echo USE AT YOUR OWN RISK!! echo. echo. :start echo. echo Please type your flash drive letter (D - Z) and press Enter set /p drive= if ‘%drive%’ == ‘D’ goto download if ‘%drive%’ == ‘E’ goto download if ‘%drive%’ == ‘F’ goto download if ‘%drive%’ == ‘G’ goto download if ‘%drive%’ == ‘H’ goto download if ‘%drive%’ == ‘I’ goto download if ‘%drive%’ == ‘J’ goto download if ‘%drive%’ == ‘K’ goto download if ‘%drive%’ == ‘L’ goto download if ‘%drive%’ == ‘M’ goto download if ‘%drive%’ == ‘N’ goto download if ‘%drive%’ == ‘O’ goto download if ‘%drive%’ == ‘P’ goto download if ‘%drive%’ == ‘Q’ goto download if ‘%drive%’ == ‘R’ goto download if ‘%drive%’ == ‘S’ goto download if ‘%drive%’ == ‘T’ goto download if ‘%drive%’ == ‘U’ goto download if ‘%drive%’ == ‘V’ goto download if ‘%drive%’ == ‘W’ goto download if ‘%drive%’ == ‘X’ goto download if ‘%drive%’ == ‘Y’ goto download if ‘%drive%’ == ‘Z’ goto download if ‘%drive%’ == ‘d’ goto download if ‘%drive%’ == ‘e’ goto download if ‘%drive%’ == ‘f’ goto download if ‘%drive%’ == ‘g’ goto download if ‘%drive%’ == ‘h’ goto download if ‘%drive%’ == ‘i’ goto download if ‘%drive%’ == ‘j’ goto download if ‘%drive%’ == ‘k’ goto download if ‘%drive%’ == ‘l’ goto download if ‘%drive%’ == ‘m’ goto download if ‘%drive%’ == ‘n’ goto download if ‘%drive%’ == ‘o’ goto download if ‘%drive%’ == ‘p’ goto download if ‘%drive%’ == ‘q’ goto download if ‘%drive%’ == ‘r’ goto download if ‘%drive%’ == ‘s’ goto download if ‘%drive%’ == ‘t’ goto download if ‘%drive%’ == ‘u’ goto download if ‘%drive%’ == ‘v’ goto download if ‘%drive%’ == ‘w’ goto download if ‘%drive%’ == ‘x’ goto download if ‘%drive%’ == ‘y’ goto download if ‘%drive%’ == ‘z’ goto download cls goto error :error echo. echo That drive letter was not recognized. Let's try again... echo. pause cls goto start :download if exist *.iso ( goto ready) echo. echo Please Move the xubuntu-9.04-desktop-i386.iso to the U904p folder and press any key echo. pause cls goto ready :ready cls 7-Zip\7z x *.iso -y -x!bin -x!programs -x![BOOT] -o%drive%: mkdir %drive%:\sysl\win32 copy sysl\win32\*.* %drive%:\sysl\win32 copy makeboot.bat %drive%: copy text.cfg %drive%: echo DO NOT REMOVE YOUR FLASH DRIVE!!! echo Please wait while we copy the casper-rw partition. This may take some time.... copy casper-rw %drive%: %drive%: cls ren isolinux syslinux ren syslinux\isolinux.cfg syslinux.cfg copy text.cfg syslinux\text.cfg echo Moving on to the makeboot script... call %drive%:\makeboot.bat