On Fri, Aug 26, 2022 at 1:27 PM Paul Dufresne via Freedos-devel
<freedos-devel@lists.sourceforge.net> wrote:
>
> Following the modification of my idea proposed by Tom: run edit32 on
> 386+ else run edit... BTW thanks Tom!  I have been looking a bit for
> a simple program that would identify approximate CPU and return it
> as an error code that batch file could used.  I did not found that
> (especially with free license)... so that I am thinking about writing
> one.  Just asking if that exist already here.
>

You can use VINFO, part of Jerome's V8 Power Tools, which is installed
as part of FreeDOS.

>    /M          Return Machine Type (This may break on future platforms)
>                Returns these exit codes:
>                    0 - Unknown, Normal or Native 8086 Hardware.
>                    1 - 80186
>                    2 - 80286
>                    3 - 80386
>                    4 - 80486
>                    5 - 80586
>                    6 - 80686 or better
>                  101 - DOSBox.
>                  102 - QEMU.
>                  103 - VirtualBox.
>                  104 - VMware.
>                  200 - General, other emulator detected.


For example, if I boot FreeDOS in VirtualBox and run the following
TEST.BAT file, I get 103, indicating VirtualBox:

@echo off
vinfo /m
echo %ERRORLEVEL%


If I boot FreeDOS in QEMU and run the same TEST.BAT file, I get 102,
indicating QEMU.

Jim


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

Reply via email to