From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BrIY6-0004XS-R1 for qemu-devel@nongnu.org; Sun, 01 Aug 2004 11:46:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BrIY5-0004XG-Ck for qemu-devel@nongnu.org; Sun, 01 Aug 2004 11:46:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BrIY5-0004XD-96 for qemu-devel@nongnu.org; Sun, 01 Aug 2004 11:46:57 -0400 Received: from [64.233.170.193] (helo=mproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BrIUQ-0006a2-L5 for qemu-devel@nongnu.org; Sun, 01 Aug 2004 11:43:10 -0400 Received: by mproxy.gmail.com with SMTP id 78so161775rnl for ; Sun, 01 Aug 2004 08:43:09 -0700 (PDT) Message-ID: <76bfb9d2040801084317e37925@mail.gmail.com> Date: Sun, 1 Aug 2004 11:43:09 -0400 From: Garth Dahlstrom Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_74_26351576.1091374989908" Subject: [Qemu-devel] QEMU Menu for Windows Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_74_26351576.1091374989908 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Attached is a batchfile that creates a simple numbered menu for running QEMU images under Windows: Here is an example of the output: === QEMU Menu 1.0 === QEMU (C) 2004 Fabrice Bellard QEMU Windows Port by kazu? QEMU Menu (C) 2004 Garth Dahlstrom (ironstorm@users.sf.net) Type the image number and hit enter to start QEMU: [1] linux [2] reactos-0.2.3 [3] freedos [4] netbsd_1.6.2 [Q] to Quit Enter your choice now -- Northern.CA ===-- http://www.northern.ca/ Canada's Search Engine ------=_Part_74_26351576.1091374989908 Content-Type: text/plain; name="menu.cmd.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="menu.cmd.txt" @echo off=20 REM QEMU menu (C)2004 by Garth Dahlstrom (ironstorm@users.sf.net)=20 REM Licensed under GNU GPL (like it would work without the source anyway...= :) ) cls setlocal enabledelayedexpansion :PrintMenu set QEMU_IMG_Count=3D0 echo =3D=3D=3D QEMU Menu 1.0 =3D=3D=3D echo QEMU (C) 2004 Fabrice Bellard echo QEMU Windows Port by kazu?=20 echo QEMU Menu (C) 2004 Garth Dahlstrom (ironstorm@users.sf.net)=20 echo. echo Type the image number and hit enter to start QEMU: echo. for /R %%x in (*.img *.dsk) do set /A QEMU_IMG_Count+=3D1 && echo [!QEMU_IM= G_Count!] %%~nx && set QEMU_IMG!QEMU_IMG_Count!=3D%%x echo. echo [Q] to Quit echo. echo Enter your choice now set /P QEMU_IMG_Choice=3D SET QEMU_IMG_Choice=3D%QEMU_IMG_Choice:q=3DQ% if "%QEMU_IMG_Choice%"=3D=3D"Q" echo. && echo Quiting && GOTO CleanUP echo. echo. echo Starting !QEMU_IMG%QEMU_IMG_Choice%! ... echo. echo. if EXIST !QEMU_IMG%QEMU_IMG_Choice%! ( START qemu.exe -L . -m 128 -hda "!QEMU_IMG%QEMU_IMG_Choice%!" -enable-aud= io -localtime ) ELSE echo Invalid Choice... && echo. && goto PrintMenu =20 :CleanUp REM Clean up environment FOR /F "usebackq delims=3D=3D" %%i IN (`set QEMU_IMG`) DO set %%i=3D set QEMU_IMG_Choice=3D set QEMU_IMG_Count=3D Pause ------=_Part_74_26351576.1091374989908--