Question about Microsoft Windows XP Professional for PC

1 Answer

Running a dos batch file in background in windows

I want to run an MS-DOS batch file program in background. how can i do this ? I run windows XP professional SP2 . please help me for the same.

Posted by on

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points


    An expert that gotĀ 5 achievements.


    An expert whose answer gotĀ voted for 20 times.


    An expert who has written 20 answers of more than 400 characters.

  • Expert
  • 90 Answers
Re: Running a dos batch file in background in windows

Batch file for what?

I once ran across a software called Dosbox that I used to run a customers dos based notes program in XP. It worked well, not sure about batch files, but worth a shot I suppose.

You can find info on it here -


Posted on Oct 23, 2007

Add Your Answer

0 characters

Uploading: 0%


Complete. Click "Add" to insert your video. Add


3 Points

Related Questions:

3 Answers

How to create simple batch files

Creating a batch file
MS-DOS users
Microsoft Windows and other users

MS-DOS users
To create a basic batch file in MS-DOS, follow the below steps that give you an example of how to create a basic batch file.

  1. Open an MS-DOS command window or get to MS-DOS. Additional information about doing this can be found on document CHDOS.
  2. At the MS-DOS prompt, type: edit test.bat and press enter.
  3. If typed properly, you should now be in a blue screen. Within the screen, type:

    dir c:\windows
    dir c:\windows\system

  4. Once the above three lines have been typed in, click File and choose exit; when prompted to save, click "Yes." Users who do not have a mouse cursor can accomplish this same task by pressing ALT+F to access the file menu, then pressing "X" to exit, and pressing enter to save changes.
  5. Once you are back at the MS-DOS prompt, type: test and press enter. This will execute the test.bat file and begin running the file. Because the first line is pause, you will first be prompted to press a key. Once you press a key the batch file will run line-by-line; in this case, listing the files in the windows and windows\system directories.
If you wish to add more lines to this batch file you would simply type "edit test.bat" to edit the file again.
Additional information about the MS-DOS edit command can be found on our edit command page. Some versions of MS-DOS and bootable diskettes may not have the edit command; if this is the case, you would either need to obtain the file to access this file or use the copy con command.

Microsoft Windows and other users
A Windows user can still use the above MS-DOS steps if they wish to create a batch file. If, however, you're more comfortable using Microsoft Windows or your operating system, you can use any text editor, such as Notepad or Wordpad, to create your batch files, as long as the file extension ends with .bat. In the below example we use the Windows notepad to create a batch file.
  1. Click Start
  2. Click Run
  3. Type: notepad and press enter.
  4. Once notepad is open, type the below lines in the file or copy and paste the below lines into notepad.

    @echo off
    echo Hello this is a test batch file
    dir c:\windows

  5. Click File and click Save; browse to where you want to save the file. For the file name, type "test.bat", and if your version of Windows has a "Save as type" option, choose "All files", otherwise it will save as a text file. Once all of this has been done click the Save button and exit notepad.
  6. Now, to run the batch file, simply double-click or run the file like any other program. Once the batch file has completed running it will close the window automatically.

Jan 04, 2011 | Operating Systems

1 Answer

What is the mean auto exe c bat in dos files??

An AUTOEXEC.BAT file contains MS-DOS commands which are executed automatically when a Personal Computer boots. This file is usually located in the root directory of the hard drive or floppy from which the computer boots (or starts) up. The AUTOEXEC.BAT file is used to set various default settings and to run programs that should be executed upon startup. Below you will find a list of executable statements (commands) that typically go into an AUTOEXEC.BAT file, along with explanations their.

The AUTOEXEC.BAT file is one form of a batch file, and it is used to automate functions in MS-DOS. In their simplest form, batch files contain MS-DOS commands (batch file language) which includes commands for such things as loops and execution branches and the like.
Example: @ECHO OFF
This optional command will suppress the display of subsequent commands while the AUTOEXEC.BAT file is being executed

Dec 09, 2010 | Operating Systems

1 Answer

What is best website to show me dos programming examples.. want to creat an exe file to pick up text files from a directory and send them to a printer whenever a new file appears .(without pc...

you mean a .bat file that can be run when a new file is added. let me see if i can find a good site for you.
My advice is get a good book! One that stands out in my mind is "The Waite Group's MS-DOS Bible" (1991?) This will take you through using the command shell and batch files through how the DOS filesystem is structured, memory managment under DOS, an explaination of how the OS loads a program up to wrting little progams of you own using machine language and debug.
Another great book is Dan Gookin's "Advanced MS-DOS Batch File Programming" that will also teach you something about operating systems in general in a nice, unformal tone.
DOS also comes with a BASIC interpreter called QBASIC, that can teach you the funamentals of programming while augmenting your shell scripts and doing things that plain batch files just can't do.

Aug 03, 2010 | Microsoft Windows XP Professional

1 Answer

Windows system32 autoexec.nt fail to operate

Win XP SP2: System not suitable for running MS-DOS. ... This file is part of the Windows 16-bit subsystem and usually lives in the system32 folder. ... P.S. If this doesn't work check out the Microsoft web page for additional fixes. ... Computer Tips Daily - Run your Windows PC like a pro! No matter what your skill ...

Jul 16, 2010 | Microsoft Windows XP Professional

1 Answer

I recently had a HD crash and have replaced it with another HD using the same Windows XP OS. While trying to reload programs that were on the old HD to the replacement, some of the programs get this error...

I always receive a "C:\WINDOWS\SYSTEM32\AUTOEXEC.NT" error message.

“C:\WINDOWS\SYSTEM32\AUTOEXEC.NT. The system file is not suitable for running MS-
DOS and Microsoft Windows applications. Choose ‘Close’ to terminate the application.”

This error message is not caused by the installation CD-ROM, but rather by the
“Autoexec.nt” system file. Windows is unable to find this file when launching the
installation CD-ROM, the file most likely having been deleted by another application.

To resolve this problem, proceed as follows:
1. Go to “C:\Windows\repair” and find the file “Autoexec.nt”.
2.Copy this file to “C:\Windows\system32”.
3.Right-click the file “Autoexec.nt” that you have just copied, and select
4.Tick the “Read-only” box and then click “OK”.

Good luck!

Aug 06, 2009 | Microsoft Windows XP Professional SP2 Full...

1 Answer

MS-Dos prompt in Windows 2000 & Xp

u can just press alt + enter when u r running ms dos prompt in xp or 2000, it will show u full screen and u once again press alt + enter it will back to normal mode when u come out u just type exit from the command prompt

Mar 16, 2008 | Operating Systems

2 Answers

MS-Dos running a file..

Right click on the file and select edit. This should load it in a text editor.
Now, simply read what it does.

You don't say what the batch file is for, so it's hard to say what you should look for in the file.

Jan 31, 2008 | Operating Systems

2 Answers

Unable to load

How to get to a MS-DOS prompt.
Reason: If Windows or the computer is not operating properly, it may be necessary to get to a MS-DOS prompt to diagnose and to perform additional troubleshooting on the computer.
Solution: MS-DOS users
Windows 3.x users
Windows 95, 98 and ME users
Windows NT, 2000 and XP users
Windows Vista users
Other PC Operating System users

MS-DOS users If you are running MS-DOS with no other operating systems, the computer should be booting into a MS-DOS prompt automatically unless you have a shell or other program loading automatically. If the computer is not getting you to a MS-DOS prompt, reboot the computer and as the computer is booting, press the F5 key when you see the message "Starting MS-DOS" or the MS-DOS version. This will load the default standard MS-DOS. If you successfully get to a MS-DOS prompt and would like to prevent the computer from loading the program that is preventing you from getting to a MS-DOS prompt, or if you would like to fix possible error messages you may be receiving when booting the computer, edit the autoexec.bat and/or the config.sys files.

Windows 95, 98, and ME users If you are able to get into Windows 95, 98 or ME, you can get to a MS-DOS prompt by following the below steps.
  1. Click Start
  2. Click Run
  3. Type "command" and press enter.
This will open a MS-DOS shell. However, if you are attempting to troubleshoot an issue with the computer and are using Microsoft Windows 95 or Windows 98we suggest you restart the computer into MS-DOS. To do this follow the below steps.
  1. Click Start
  2. Click Shutdown
  3. Choose the option to restart the computer into a MS-DOS prompt.
If you are unable to get into Windows 95 or Windows 98 to get into a MS-DOS prompt, follow the below instructions (Windows ME does not have this option).
  1. Reboot the computer
  2. As the computer is booting, press the F8 key when you hear a beep or when you see "Starting Windows 95" or "Starting Windows 98". Windows 98 users sometimes may find it easier to press and hold the left CTRL key as the computer is booting.
  3. If done properly the user should get to a screen similar to the below screen.
Microsoft Windows 95 Startup Menu
============================= 1. Normal
2. Logged (\BOOTLOG.TXT)
3. Safe mode
4. Step-by-step confirmation
5. Command prompt only
6. Safe mode command prompt only
Enter a choice: 1
F5=Safe Mode Shift+F5=Command prompt Shift+F8= Step-by-step confirmation [N]

4. Select the option for Safe mode command prompt only.
Windows NT, 2000, XP, and Vista users If you're running Windows NT, 2000, or Windows XP and need to get to MS-DOS prompt follow the below steps.
  1. Click Start
  2. Click Run or click in the "Start Search" field if you're running Vista
  3. Type "cmd" or "command" and press enter.
Additional information about the difference between "cmd" and "command" can be found on document CH000395. If you're attempting to get into a MS-DOS prompt to troubleshoot the computer boot the computer into safe mode. Additional information about how to get into safe mode can be found on document CHSAFE. Windows 2000, XP, and Vista users who are unable to boot the computer into Normal Windows mode or Safe mode can also enter the recovery console to manage their computer from a prompt. Additional information about how to do this can be found on document CH000627. Finally, if you are experiencing issues getting into Windows NT, 2000, or XP, it may be necessary to run troubleshooting steps from a MS-DOS prompt. It is recommended that the Network Administrator get into the MS-DOS prompt by using either a standard MS-DOS boot diskette (note: will not be able to access data using a standard MS-DOS bootable diskette) or the ERD diskettes created after the installation of Windows NT, or boot from the Windows XP CD.

question.gif dot.gif




Related Pages:
Safe Mode

Were you able to locate the answer to your questions?
dot.gif dot.gif

Dec 06, 2007 | Microsoft Windows XP Home Edition

2 Answers

How to edit registry

1) to edit registry go to start / select run and type regedit. from there you are able to edit registry values. BEWARE because editing registry values may make your windows stop working. you should know what you are doing and you are responsible of the cosnequenses 2) a bat file is a batch file. Batch files are files that allow MS-DOS and Microsoft Windows users to create a lists of commands and/or programs to run once the batch file has been executed. 3) create a file called autorun.inf and type inside [autorun] open=file.exe save your file and write it in the cd you want to autorun the file.exe part must be replaced with the executable you want to load when your CD autoruns

Oct 08, 2007 | Microsoft Windows XP Professional With...

Not finding what you are looking for?
Microsoft Windows XP Professional for PC Logo

Related Topics:

1,960 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Operating Systems Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Scott Fryer

Level 2 Expert

80 Answers

Alex Krenvalk

Level 2 Expert

401 Answers

Are you a Microsoft Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides