Discussion Locked

Loading the Ansi.sys

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have this application that needs the ansi.sys file be loaded to display correctly. This applications runs in MS-DOS an I'm currently running Win2K. I already try to load the config.nt from advance properties with no luck. Any ideas ???

2 replies

by qazxsw

Create batch file c:\test\Try.bat with sample contents:
@echo off
echo [10;35H[36;44m Hello World [m
pause >nul

Note:
= Escape (press Ctrl+P then Esc while using Edit Try.bat).

Create file c:\test\Try.nt with sample contents:
rem See %systemroot%\system32\Config.nt
dos=high,umb
device=%systemroot%\system32\himem.sys
device=%systemroot%\system32\ansi.sys
files=20

With Explorer, create a new shortcut:
Command Line: %systemroot%\system32\command.com /c c:\test\try.bat
Name for shortcut: Try

With Explorer, select shortcut Try (created in previous step):
Right click, Properties, Program, Windows NT.
Set Config Filename = c:\test\Try.nt
Press OK a couple of times.

Double click the shortcut Try --you will see Hello World displayed with Cyan
foreground (36) and blue background (44), starting at row 10, column 35.

At Command Prompt:
start try.pif

You could run your DOS program from within the batch file, or modify the
shortcut to run the DOS program directly.

Best regards

by heinrichmarco

It dosen't load the ansi.sys file, because when I run the exe file it dosen't display it correctly. Remember I'm using Windows 2000...yes i know is almost the same kernel that Windows NT but it dosen't work

This discussion is closed to new replies.