PDA

View Full Version : Possible to run any program in windowed mode?


Goofyman23
10-01-03, 08:41 PM
Is there any kind of command line to add to a shortcut to make a program (ie mostly games) so it runs in a window.

Reason being, most games that I have dont have this option and I use programs like, RW, Vent., and Ts2 to talk to people at the same time.

redduc900
10-01-03, 09:10 PM
You didn't mention which OS you're running, so I'll assume it's either XP or W2K. If you either double click the .exe file or run it from a shortcut (r-drag the .exe file to the desktop--> 'create shortcut'), it'll run in a window, provided there's enough conventional memory etc. available. For best DOS conventional memory, edit the ...Windows\System32\config.nt and autoexec.nt files.

In config.nt have (apart from the large number of REM lines) just...
EMM = B=4000 RAM
(note the exact spaces - either side of the first = and before RAM, none next to the second =) and...

dos=high, umb
device=%SystemRoot%\system32\himem.sys
files=40
(or higher files= if needed)

...and in autoexec.nt have

REM Install DPMI support
lh %SystemRoot%\system32\dosx

...with other earlier LH lines REM'ed out, and then any SET or PATH lines that may already be present at the end. This should give about 612K for a program, run from a shortcut made to its .exe file. Right click the shortcut | Properties | On the Memory page, you can set an explicit value (rather than Auto) for any EMM or XMS memory it may need, and for initial environment space. :)

Goofyman23
10-02-03, 11:19 PM
lol, it would help if I listed OS.
Sorry, good guess, and thanks :D