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
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending