Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-12 Thread David
On Sat, 7 Jan 2023 at 22:34, Ottavio Caruso wrote: > I have a few DOS/Windows abandonware that I'd like to check but I only > want the DOS ones, because Wine on my installation is a total pain. [...] > $ file test2/sm/SM.EXE > test2/sm/SM.EXE: MS-DOS executable, MZ for MS-DOS > Which makes me

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-12 Thread Virgo Pärna
On Sat, 7 Jan 2023 11:33:44 +, Ottavio Caruso wrote: > GROUPS.2 QWORDS.SM SM.EXE SM.OVR > GROUPS.SM README.1STSMHOME.HLP SM.PIF > HAMWORDS.SMREGWORDS.SM SM.ICO SMRADIO.HLP > I do not have 16 bit Windows executables at hand for testing, so

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-09 Thread Michael Stone
On Sat, Jan 07, 2023 at 11:33:44AM +, Ottavio Caruso wrote: $ file test2/sm/SM.EXE test2/sm/SM.EXE: MS-DOS executable, MZ for MS-DOS Which makes me think it's DOS but it could be a false positive. Nope, that's it. If it was windows it would say something like "PE32+ executable (GUI)

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-08 Thread Jeffrey Walton
On Sat, Jan 7, 2023 at 6:43 PM Miguel A. Vallejo wrote: > > If I remember correctly, all Windows EXE have an string saying: > > This program cannot be run in DOS mode. A couple of small nits... They are called PE/PE+ programs. The string "This program cannot be run in DOS mode" is called the

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-07 Thread Charlie Gibbs
On Sat Jan 7 17:34:05 2023 wrote: > On Sat, Jan 07, 2023 at 08:47:09AM -0500, Jude DaShiell wrote: > >> If I remember correctly, dos and windows .com and .exe programs >> all have control-z as their first character. The file command >> may also help. > > No. Control-Z (aka 0x1a) was an EOF

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-07 Thread Miguel A. Vallejo
If I remember correctly, all Windows EXE have an string saying: This program cannot be run in DOS mode. It is displayed when loaded under MS-DOS, so it should be easy to identify an EXE for DOS from an EXE for Windows. To run it, dosbox should work. Greetings

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-07 Thread Georgi Naplatanov
On 1/7/23 13:33, Ottavio Caruso wrote: I have a few DOS/Windows abandonware that I'd like to check but I only want the DOS ones, because Wine on my installation is a total pain. For example: $ file test2/sm416.exe test2/sm416.exe: Zip archive data, made by v2.0, extract using at least v2.0,

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-07 Thread tomas
On Sat, Jan 07, 2023 at 08:47:09AM -0500, Jude DaShiell wrote: > If I remember correctly, dos and windows .com and .exe programs all have > control-z as their first character. The file command may also help. No. Control-Z (aka 0x1a) was an EOF character under DOS. Files were (sometimes...)

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-07 Thread tomas
On Sat, Jan 07, 2023 at 02:42:38PM +, Ottavio Caruso wrote: > Am 07/01/2023 um 12:13 schrieb Timothy M Butterworth: > > All .exe files are windows, linux does not use .exe! You can run Windows > > applications on Linux using: WINE, CrossOver Office or Steam Proton. I > > recommend CrossOver

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-07 Thread Tixy
On Sat, 2023-01-07 at 08:47 -0500, Jude DaShiell wrote: > If I remember correctly, dos and windows .com and .exe programs all have > control-z as their first character. The file command may also help. If I remember correctly, COM files have no header, the first byte is the first machine code

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-07 Thread Hans
As far as I know, you can look into the file with a hexeditor (maybe any other editor should do it, too). In the first line is written, which OS is required. However, there could be anything written, but in most cases it is set correctly. Please do not blame me, if I am wrong, but I blieve,

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-07 Thread Jude DaShiell
If I remember correctly, dos and windows .com and .exe programs all have control-z as their first character. The file command may also help. Jude "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) .

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-07 Thread DdB
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 07.01.2023 um 13:40 schrieb The Wanderer: > On 2023-01-07 at 07:13, Timothy M Butterworth wrote: > >> All .exe files are windows, linux does not use .exe! > > While the latter statement is (largely) correct, the former is not. > Some .exe files

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-07 Thread The Wanderer
On 2023-01-07 at 07:13, Timothy M Butterworth wrote: > All .exe files are windows, linux does not use .exe! While the latter statement is (largely) correct, the former is not. Some .exe files are DOS programs, not Windows programs. The question being asked is how to tell which type a given EXE

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-07 Thread Timothy M Butterworth
All .exe files are windows, linux does not use .exe! You can run Windows applications on Linux using: WINE, CrossOver Office or Steam Proton. I recommend CrossOver Office, I use it to play windows games on Linux. -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀

Re: How can I check (and run) if an *.exe is a DOS or a Windows program?

2023-01-07 Thread Jude DaShiell
Inspect the files with strings and pipe the output to less. Jude "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) .