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

  • wwilliams11 Jun 25, 2008

    A want to run a batch file in background without MS-DOS window getting opened. How it can be done on WDOWS XP with SP2 machine.

×

Ad

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that gotĀ 5 achievements.

    Governor:

    An expert whose answer gotĀ voted for 20 times.

    Scholar:

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

  • Expert
  • 90 Answers

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 - http://dosbox.sourceforge.net/

 

Posted on Oct 23, 2007

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi there,
Save hours of searching online or wasting money on unnecessary repairs by talking to a 6YA Expert who can help you resolve this issue over the phone in a minute or two.

Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.

Here's a link to this great service

Good luck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

Related Questions:

1 Answer

What happens wen rtc Batt is unloaded


Hello. batt files or batch files are used by your operating system to run a list of commands created by ms-dos or by you. A good example of a batch file is the autoexec.bat which is loaded each time the computer boots to MS-DOS. Batch files are like shortcuts on your desktop, when they are run they pass information through the command line and these sets of instructions run commands or programs on your computer. Did that help?

Feb 09, 2014 | Acer Predator G3620-UR308 - Core i7 3770...

1 Answer

How to install windows xp sp2 by using dr-dos


1. Check your BIOS to be sure your computer will boot from a CD. Enter the BIOS setup by pressing the "Delete" or F2 or "F12" key, or as directed at the startup screen, immediately after booting. Set the first boot device to "CDROM" or "DVDROM" instead of "hard drive" if it isn't already.

2. MS-DOS command prompt

Insert the Windows XP installation CD into your CD or DVD drive and restart the computer. When prompted, choose to start from the MS-DOS command prompt with CD support. The MS-DOS command prompt will appear in a moment.

3. Start SMARTDRIVE by typing "SMARTDRV" at the DOS prompt and pressing enter. You don't have to run SMARTDRIVE, but copying the files will be much quicker if you do. The computer will display the DOS prompt again.

4. Enter "CD I386" at the DOS prompt to change to the directory where the setup program starts.

5. Enter "WINNT" at the prompt to start Windows XP setup. The installation program will copy files to your computer and then display a message requesting to reboot.

6. Press the "Enter" key to reboot. The setup program will start again and check that your hard drive format is compatible with Windows XP. If not, it will guide you through partitioning and formatting the drive and then ask you to reboot once more.

7. Press "Enter" to reboot. The computer will restart in Windows XP mode and automatically start the Windows Setup Wizard to detect your hardware and finish the installation.

Feb 21, 2011 | Computers & Internet

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:

    pause
    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 edit.com 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
    pause
    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 | Computers & Internet

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.
ECHO
Example: @ECHO OFF
This optional command will suppress the display of subsequent commands while the AUTOEXEC.BAT file is being executed

Dec 09, 2010 | Computers & Internet

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.
http://www.chebucto.ns.ca/~ak621/DOS/BatBasic.html
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.
www.animatedsoftware.com/faqs/learndos.htm

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 ...
www.worldstart.com/tips/tips.php/1453

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
“Properties”.
4.Tick the “Read-only” box and then click “OK”.

Good luck!

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

1 Answer

Make MS-DOS Boot CD


Hi. This adress (http://www.bootdisks.us/ms-dos/5/ms-dos-bootable-cd-images.html) contains a couple of ready boot discs. Just download them (.iso file) and burn them to a CD. Hope this helps.

May 22, 2009 | Microsoft MS Windows XP Professional SP2

2 Answers

Windows XP Professional


Did you try uninstalling the last batch of updates?
To see the updates under "Add or Remove Programs", you'll need to check the appropriate box at the top.
If uninstalling does not help, you may have to start over.

Possible approaches to avoid the same issue when starting over:
  • Don't use SP3, unless you know that you *need* it. Check Wikipedia to decide whether you need it.
  • Install OS with SP2 and all updates, only then apply SP3.
  • Don't install all updates at once. Install them in batches of, say, 10 a batch. If the same thing happens, you know which batch was responsible.

Aug 04, 2008 | Microsoft Windows XP Professional for PC

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,976 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

3015 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18425 Answers

Alun Cox

Level 3 Expert

2678 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...