> On Wed, May 07, 2025 at 02:50:11PM -0400, Jerome Shidel via Freedos-user > wrote: > > >> On May 7, 2025, at 2:17 PM, Roger via Freedos-user >> <freedos-user@lists.sourceforge.net> wrote: >> >> Forgot mentioning, when booting FreeDOS-1.4 from USB flash media, >> doesn't appear for having a method for detecting when booting from between >> Qemu or a bare metal PC, as hardware configuration (eg. autoexec.bat) between >> the two hardware schemes would likely be different. > > >vinfo /m >If errorlevel 103 goto NotQEMU >If errorlevel 102 goto IsQEMU >goto NotQEMU > >:IsQEMU >REM do QEMU stuff >goto Done > >:NotQEMU >REM do stuff for hardware or there virtual machines >goto Done > >:Done
Ah, vinfo /m puts "machine type" into DOS %errorlevel% variable. Entered towards the end of my C:\FDAUTO.BAT file. Might be a good idea for initial debugging, using the following: echo %errorlevel% Reports 6 (vinfo /? -> 8086 or better) for a Dell Optiplex 755 Reports 102 (obviously) for Qemu. Works using within FDAUTO.BAT on my FreeDOS-1.4 install onto USB flash media. Now for removing evil goto... ;-) Roger
signature.asc
Description: PGP signature
_______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user