@echo off rem .bat files ©2007-2008 by Lance http://www.pendrivelinux.com, modified by Andreas Dumont, www.com-magazin.de rem 7-Zip Copyright ©1999-2007 Igor Pavlovis http://7-zip.org rem Syslinux ©1994-2006 H. Peter Anvin http://syslinux.zytor.com cls echo. echo ===================================================================== echo File preparation script used to create a Linux Mint flash drive echo ===================================================================== echo. echo This batch file will extract the Mint Linux ISO to your flash drive 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 Linux Mint 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 LinuxMint-7-Universal.iso ( goto ready) echo. echo Please Move the LinuxMint-7-Universal.iso to the USBMint folder and press any key echo. pause cls goto ready :ready cls 7-Zip\7z x LinuxMint-7-Universal.iso -y -x!bin -x!programs -x![BOOT] -o%drive%: mkdir %drive%:\sysl\win32 copy sysl\win32\*.* %drive%:\sysl\win32\ copy makeboot.bat %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%: copy syslinux.cfg %drive%:\isolinux\ %drive%: cls ren isolinux syslinux echo Moving on to the makeboot script... call %drive%:\makeboot.bat