Results 1 to 4 of 4

Thread: How to use ANSI.SYS in Windows 7

  1. #1
    Join Date
    Oct 2010
    Posts
    61

    How to use ANSI.SYS in Windows 7

    I am running a Windows 7 operating system on my machine and this machine has some DOS based programs out of which some programs uses the ANSI.SYS. Although windows 7 has this, using it in the classical way would be much better. device=<path>\ansi.sys in CONFIG.SYS does not help. I just want to know that which file gets replaced with the CONFIG.SYS in Windows 7?

  2. #2
    Join Date
    Nov 2009
    Posts
    761

    Re: How to use ANSI.SYS in Windows 7

    CONFIG.SYS commands responsible for specific programs in memory and manage the operation of your equipment. For the most part, they are only used in the CONFIG.SYS file, with the exception of break commands, replace and set, you can also include in the AUTOEXEC.BAT file or type in the MS-DOS. Typically, the CONFIG.SYS file contains only some of these commands.

  3. #3
    Join Date
    May 2008
    Posts
    681

    Re: How to use ANSI.SYS in Windows 7

    ANSI.SYS is capable to be loaded and utilized from the DOS command prompt, with the limitation that it can run simply in the context of the sub-system MS-DOS. Windows NT is not supporting ANSI escape sequences in Win32 Console applications. In order to load ANSI.SYS, you have to add "device = c: \ winnt \ system32 \ ansi.sys" in the Config.nt file from the System32 directory of Windows NT.

  4. #4
    Join Date
    Nov 2009
    Posts
    1,035

    Re: How to use ANSI.SYS in Windows 7

    One time ANSI.SYS is loaded, you would be able to use any MS-DOS program that uses this driver. Still, if you wish to use ANSI.SYS to alter the manifestation of the command prompt, you may need to perform some additional steps. You have to add "dosonly" Config.nt file in order to highlight the command line prompt MS-DOS and run it from the same. Then you may execute the batch file including the ANSI escape sequences to highlight the prompt. As Ms DOS and CMD looks like same, but keep in mind that you won’t be able to start programs non-DOS from the command line and ANSI.SYS is a device driver based on MS-DOS.

Similar Threads

  1. Replies: 1
    Last Post: 16-07-2010, 12:27 PM
  2. Ansi.sys and Windows XP issue
    By AMISH in forum Windows Software
    Replies: 3
    Last Post: 13-07-2009, 07:07 PM
  3. Join SQL Traditional or ANSI
    By Deep23 in forum Software Development
    Replies: 2
    Last Post: 23-04-2009, 12:07 AM
  4. Convert UTF-8 to ANSI
    By DotNetUser in forum Software Development
    Replies: 2
    Last Post: 04-04-2009, 10:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •