> On Thu, May 08, 2025 at 04:43:29PM -0400, Roger wrote:
>> 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

Had a tough time getting values <102 or >255 being properly recongized
by and acted upon by 'if' statement.

Had to encapsulate errorlevel and add double equals signs for proper
if execution.

eg. if %errorlevel%==6 echo PLATFORM: 8086/Dell

Roger

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to