• Running DOS Program under Win 2000

    Author
    Topic
    #365184

    Running DOS Program under Win 2000

    I have a MS-DOS based program running successfully in Windows 98 with the following config.sys file:

    Device=C:Windowshimem.sys
    Device=C:Windowsemm386.exe ram
    Dos=high,umb
    Files=50
    Buffers=32

    I

    Viewing 0 reply threads
    Author
    Replies
    • #562868

      Hi John,

      I don’t think a second-grader would know what DOS is, so I’ll just explain it without Geek-speak. Deal? grin

      To configure the DOS environment in Windows 2000, you will need to modify two files. Both are located in C:WINNTsystem32 (or wherever you installed Win2k, the system32 directory is what you want). The files are:

      • AUTOEXEC.NT
      • CONFIG.NT[/list]These files will set global values for any command prompt session – a DOS box that is – and if you need to change them in the future for a different program, you can do that wihtout disrupting the global settings you create in these two files. I’m not going to go into unnecessary detail on that process because it’s irrelevant right now, but open these two files and take a look. Each has documentation inside of it that explains how they work with DOS programs.

        Hope that helps.

      • #562911

        Hi Mark

        That is what I was looking for.

        Can you point me to articles that discuss DOS under W2k based on my config.sys needs (readers digest version)

        Thanks,

        PS: Does DOS under Windows Millennium work similar or is this a question for a different board?

      • #562931

        Can I quickly butt in with a small question grovel ? – it may just be related to the current topic.

        How can I run batch files without them popping up DOS windows?

        • #562933

          Yikes, I don’t know of any way to do it unless you call it from a program, and the program itself runs the instance hidden. You could use a little tray app like Hide Windows and tell it to make CMD.EXE invisible, but I think there that the window title has to be consistent….? I found and there is also a GUI version.

          If you used this, and put the TITLE command in your batch file, you could control its consistency….

          TITLE HideMePlease
          @ECHO You will not see this message
          • #562934

            Thanks Mark – I’ll look into it….

            • #562983

              Hi Leif
              Before logging off (in 98SE, 2kP and XP) I clear files out of the the appropriate Temp folder, using a batch program. No Window pops up. This may be down to one of two things:

              a. for the Del command within the batch file, I use the /q switch.

              b. to make the batch file run, I use a cmd.exe shortcut, with the /k switch in the command line followed by the path name of the batch file.

              You might like to investigate which works for you.

              Rgds

            • #563055

              MerC,
              Could you expand on solution b, please?

            • #563187

              Sure : drag cmd.exe to the Dtop and make it produce a shortcut.
              Click properties and on the Target line there should be something like :
              H:WINNTsystem32cmd.exe

              on the end of this type a space then :

              /k C:BatchESC5.bat
              (where the path is to the batch file you want to Run.)

              For even more detail, have a look on my website at Autoclean Temp Files (from the Index). This gives the method for three different Windows versions.

              Cheers

            • #563329

              Thanks, not having much success yet, but it has given me some ideas……

        • #563118

          The following simple solution won’t completely hide the batch file but will make it unobtrusive.

          Create a shortcut to the .bat file. Right click on the shortcut and select properties. On the Shortcut tab there will be an option to select the type of window. Select Minimized and, while an entry will appear on the task bar, no window will pop up.

          • #563128

            Thanks for that, but….
            The batch file is triggered by an incoming email (actually about 15) using ExLife. This simply runs a command line so I need to add a switch or something.
            It’s not the end of the world, only ocurring once a day at 6:00am. Trouble being that the windows grab focus before the cafeine has got to work…..

      • #565899

        Hi Mark

        I copied both config.nt & autoexec.nt to config.nbs & autoexec.nbs.

        Added EMM = RAM to config, pointed shortcut pif to the .nbs files and my app still dosen’t see the additional memory.

        When I click the shortcut I see the following flash by quickley:

        Out of Enviornment Space
        File not found
        File not found

        Then my app loads OK, however not enought memory to operate correctly.

        Any clues?

        John

        PS: When I tried to edit the *.nt files directly, they were read only.

    Viewing 0 reply threads
    Reply To: Running DOS Program under Win 2000

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: