Get OS version information within a batch script

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
bitfail
Newbie
Newbie
Posts: 2
Joined: Tue Apr 24, 2012 10:55 am

Get OS version information within a batch script

Post by bitfail »

How would one find out if a batch script was running on wine versus some version of win32 natively? I want to be able to remind the user that a native Linux port is available for various distros, but only if the install script realizes it is running on a Linux machine.

I searched online and found some stuff that can find versions of win32, but not wine as well. On of the ones that look promising were: http://malektips.com/xp_dos_0025p.html but I might be wrong.

Thanks
J V
Level 3
Level 3
Posts: 83
Joined: Wed Mar 07, 2012 6:57 pm

Post by J V »

You could check the directory structure for default values (Such as Z:\usr\share) or registry values only found in wine (But I wouldn't know what such registry values are)

Both of these are pretty hack n slash
bitfail
Newbie
Newbie
Posts: 2
Joined: Tue Apr 24, 2012 10:55 am

Post by bitfail »

Thanks Ma Xiaojun and J V. The devfaq has an interesting point.
Locked