new windows batch file


Forum: DSL Embedded
Topic: new windows batch file
started by: krazynesphreak

Posted by krazynesphreak on Aug. 08 2005,01:49
since qemu 7.0 you can now boot from a physical drive. i haven`t seen anyone post this so i will. here is the code/bat in order to boot the drive. and you don`t need the embedded version to boot either.

Code Sample

@echo off

if EXIST d:\DSL.bat set BOOTDRIVE=\\.\d:
if EXIST e:\DSL.bat set BOOTDRIVE=\\.\e:
if EXIST f:\DSL.bat set BOOTDRIVE=\\.\f:
if EXIST g:\DSL.bat set BOOTDRIVE=\\.\g:
if EXIST h:\DSL.bat set BOOTDRIVE=\\.\h:
if EXIST i:\DSL.bat set BOOTDRIVE=\\.\i:
if EXIST j:\DSL.bat set BOOTDRIVE=\\.\j:
if EXIST k:\DSL.bat set BOOTDRIVE=\\.\k:
if EXIST l:\DSL.bat set BOOTDRIVE=\\.\l:
if EXIST m:\DSL.bat set BOOTDRIVE=\\.\m:
if EXIST n:\DSL.bat set BOOTDRIVE=\\.\n:
if EXIST o:\DSL.bat set BOOTDRIVE=\\.\o:
if EXIST p:\DSL.bat set BOOTDRIVE=\\.\p:
if EXIST q:\DSL.bat set BOOTDRIVE=\\.\q:
if EXIST r:\DSL.bat set BOOTDRIVE=\\.\r:
if EXIST s:\DSL.bat set BOOTDRIVE=\\.\s:
if EXIST t:\DSL.bat set BOOTDRIVE=\\.\t:
if EXIST u:\DSL.bat set BOOTDRIVE=\\.\u:
if EXIST v:\DSL.bat set BOOTDRIVE=\\.\v:
if EXIST w:\DSL.bat set BOOTDRIVE=\\.\w:
if EXIST x:\DSL.bat set BOOTDRIVE=\\.\x:
if EXIST y:\DSL.bat set BOOTDRIVE=\\.\y:
if EXIST z:\DSL.bat set BOOTDRIVE=\\.\z:

start qemu\qemu.exe -L qemu/ -m 128 -cdrom %BOOTDRIVE% -enable-audio -localtime

exit


this code is how i have mine set.
later
-ryan

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.