News for hackers. Stuff that matters.
Re:The -a to -z of Command-Line Options (2003) by chungy on Monday December 10, 2018 @07:10AM (#18647300)
Windows 1.x-3.x didn't really have a command line, the window you use to run command.com was for DOS programs only. Windows programs didn't have a text mode to utilize it.

Windows NT's console window was properly accessible to Windows programs, as well as DOS compatibility. Windows 95/98/Me inherited limited forms of text-mode compatibility from NT.

Re:The -a to -z of Command-Line Options (2003) by einr on Monday December 10, 2018 @10:04AM (#18648361)
the window you use to run command.com was for DOS programs only.

This is not strictly true. You could launch Windows programs from the DOS box. If you tried to run something like PBRUSH.EXE from true DOS you would get "This program requires Windows" but in a DOS box it would detect that Windows was running and launch the program.

I think it is true that there were no Windows-only command line apps though.

Re:The -a to -z of Command-Line Options (2003) by dfox on Monday December 10, 2018 @11:12AM (#18648874)
There was no native support for command line apps (in part because the cooperative multitasking model is not especially conductive to such things), but at least some Win16 development environments came with libraries for emulating console applications (eg. BP7 and Delphi 1 had unit WinCRT which did exactly that).
Re:The -a to -z of Command-Line Options (2003) by laumars on Monday December 10, 2018 @10:36AM (#18648589)
By the Win95 era there was. In the 3.x and below era people tended to either be in DOS or be in Windows rather than running DOS in Windows. Or at least that was my experience, YMMV
Re:The -a to -z of Command-Line Options (2003) by amyjess on Monday December 10, 2018 @10:51AM (#18648710)
Even in the Win95 era, I remember having to boot into DOS to run some games (Redneck Rampage comes to mind).
Re:The -a to -z of Command-Line Options (2003) by laumars on Monday December 10, 2018 @12:02PM (#18649270)
I think you could largely get around having to boot into DOS mode by enabling a specific setting on the MS-DOS shortcut for those games. I think it unloaded win.com - so you're essentially shutting down Windows rather than rebooting into DOS) but we're talking > 20 years since I've last used that trick so my memory is a bit fuzzy.
Re:The -a to -z of Command-Line Options (2003) by int_19h on Monday December 10, 2018 @12:57PM (#18649744)
In practice, people usually rebooted into DOS mode to play so as to do memory optimization in config.sys & autoexec.bat (HIMEM, EMM386 etc). Although that was for the benefit of older 16-bit games - 32-bit DOS extender stuff like Redneck Rampage wouldn't care.
Re:The -a to -z of Command-Line Options (2003) by laumars on Monday December 10, 2018 @03:03PM (#18650768)
I don’t think you’d need to reboot to take advantage of that because they’re loaded as part of Windows booting and then a lot of the DOS kernel was patched into the Windows kernel for 16bit driver support.

I certainly don’t recall ever having any issues with 16 bit games (aside my weird soundcard not working with half the games I tried, but I can’t recall why that was off hand).

Re:The -a to -z of Command-Line Options (2003) by int_19h on Monday December 10, 2018 @09:16PM (#18652854)
It's not a 16-bit driver issue; it's the conventional memory size issue. Remember the old 640 Kb limit? When you had too many DOS drivers loaded, you often ended up with less than 600 Kb free - and some 16-bit games didn't like running that low, hence the need to use HIMEM etc. And while it still works when running DOS apps from Windows, it reduced the amount of conventional memory even further.
Re:The -a to -z of Command-Line Options (2003) by laumars on Tuesday December 11, 2018 @12:40PM (#18657037)
Yes, I understand the problem but what I’m saying is when you shutdown to DOS (even without rebooting) win.com was shutoff. Since it was win.com that disabled EMM386 you were free to run your HIMEM whatever again. Thus having a full DOS environment without a full reboot (which used to be slow in those days).

Thinking about it some more, I think I might have had a subset autoexec.bat I used to run for those occasions.

That technique seemed to work for me. Maybe I’m forgetting a tonne of 16 bit games that didn’t play but nothing immediately springs to mind

Re:The -a to -z of Command-Line Options (2003) by int_19h on Tuesday December 11, 2018 @03:33PM (#18658602)
EMM386 was usually run from autoexec.bat. But HIMEM was a driver installed via config.sys. I think there were some complications with the latter with "reboot to DOS".