IT Hardwares

eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
Business & Money
Technology
Women
Health
Education
Family
Travel
Cars
Entertainment
SD Editorials
Online Guide and article directory site.
Foodeditorials.com
Over 15,000 recipes & editorials on food.
Lyricadvisor.com
Get 100,000 Lyric & Albums.
  • Business & Money
    • A Guide to Business
    • Guide to Finance
    • Ideas for Marketing
    • Legal Guide
    • Guide to Insurance
    • Lettre De Motivation
    • Guide to the Stock Market
    • Human Resource Career
    • Sales Marketing
    • Forex & Trading
    • Advertising & Marketing
    • Startup Guide
  • Technology
    • Guide to Technology
    • Cell Phones
    • Computer Software
    • IT Hardwares
    • Internet
    • Online Security
    • Cameras
    • Search Engine Optimization
    • Science & Technology
  • Women
    • Guide to Women
    • Relationship Advice
    • Marriage
    • Jewelry
    • Pregnancy
    • Fashion Style
    • Divorce Guide
    • Wedding Guide
    • Dating Guide
    • Natural Beauty
  • Health
    • Guide to Health
    • Guide to Medical
    • Plastic Surgery
    • Weight Loss
    • Sports
    • Body Wellness
    • Cancer Treatment
    • Common Illness
    • Health & Lifestyle
  • Education
    • Military Service
    • Politics and Policy
    • Arts & Humanities
    • Education and Teaching
    • Learn Languages
    • Colleges & Universities
  • Family
    • Quality Home Improvement
    • Hobbies and Interests
    • Family Guide to
    • Pet Guide
    • Loans Guide
    • Credit Cards
    • Gardening Guide
    • Home Security
    • Real Estate
    • Home Decor
    • Gift & Present
  • Travel
    • The Travel Guide
    • Adventure Travel
    • Cruise Ships
    • Beach Holiday
    • Travel Accommodation
    • Holiday Destinations
  • Cars
    • Information on Cars
    • Traffic Violations
    • Auto Insurance
    • Trailers
    • Sport Cars
    • The Bikes
  • Entertainment
    • Entertainment Guide
    • World Music
    • Photo & Video
    • Television & Games

Dos Programs In Xp

    View: 
Introduction: This article explains how to speed up printing from DOS to a DOS compatible printer on Windows.



If you need to print from DOS to a Windows printer which is not DOS compatible, like a Windows-Only (GDI) USB printer or a virtual printer (WinFax, PDF writers, etc.), please see "How to print from DOS to Windows-Only printers" at http://www.printfil.com/article/print-from-dos-to-windows-only-printers.htm

The Problem: If you run a DOS application on NT-based Windows systems (Windows 2000, XP, 2003, Vista), you may find that your print jobs are spooled after many seconds, sometimes minutes, especially when printing to a network printer. It may even happen on Windows 95/98/ME machines.

The problem has two main causes:

1. How the DOS program manages the printing device

2. How the DOS program uses the CPU on the machine

1) Managing the DOS printing device

-----------------------------------

In the age of DOS, most of the printers were dot-matrix and connected to a parallel port (LPT1:, LPT2: or LPT3:)

A typical DOS program sends binary data (characters) to one of these ports (usually LPT1:). A dot matrix printer can start printing that data as soon as it's sent to the port and before all the data has been sent by the program.

A DOS programmer did not need to close the printing device (port) when the print job ended, because the printer had already finished its job.

Under Windows things are different. Laser and other graphical printers need to receive an entire page before rendering it on paper. Additionally, multiple applications running/printing on the same machine introduced the need for a printing queue, especially with network printers.

So, if the DOS program does not close the printer port at the print job end, then Windows does not know the job is really finished. It waits for a timeout value to expire before deciding to finally spool the next job.

If you're in this situation, you can close the DOS program as soon as it finishes printing. You'll see your print job start immediately because all the DOS handles will be closed by the Operating System itself, including the printer port.

The best solution for this problem should be to fix the DOS program, if you are the original programmer. In other articles I show you how to do this with popular DOS programming languages, like Basic and Clipper.

If you're not a programmer, you can change the Windows timer above, to make the delay shorter. Do not set the value too low or the printer could start printing before the DOS program has really finished creating the job.

1) If you're running an NT based Windows system (2000, XP, Vista)

The timeout value is stored into a Registry entry. TAKE CARE using RegEdit. It could be rather dangerous. If you'll perform the wrong actions, your machine could even refuse to reboot.

In REGEDIT ( START -> RUN -> REGEDIT )

click : HKey_Local_Machine

then click : System

then click : CurrentControlSet

then click : Control

then click : WOW

here you'll find the LPT_timeout property. Double clicking the value you can choose how many seconds you prefer, then reboot your machine to apply the change.

2) If you're runnign an older Windows OS (9x/ME)

Search your C drive for the SYSTEM.INI file and open it with NOTEPAD (don't use Ms-Word or other word processors)

in the [386enh] section search [Network] if it does not exist enter the following:

[Network]

PrintBufTime=10

[IFSMGR]

PrintBufTime=10

This will set the timeout to 10 seconds. Reboot your machine to apply the changes.

2) DOS CPU usage

----------------

Unlike Windows, MS-DOS was a single-user operating system. You could only run a single program at a time, which could even keep the entire CPU for itself, to work as fast as possible.

This causes a common problem for DOS programs running on recent Windows machines: the CPU hogging.

Typically, when polling the keyboard (during a wait state), the DOS program performs an infinite loop, to check it as fast as possible. In DOS this did not cause any troubles at all, but on Windows, the system might be so "busy" that no other tasks can be performed (including the print spooling process, which usually starts when the DOS program has finished printing and is waiting for user input, typically on a menu).

To check if your own DOS program is actually hogging the CPU, please try to leave the Task Manager opened while it's on execution.

Press CTRL+ALT+DEL

Click the "Performance" tab

If the CPU usage often go to 100 CPU patches at the Citrix website: http://support.citrix.com/article/CTX846521

If the solutions in the page above does not apply to you, you may want to try TameDOS as a replacement for the Windows Command Prompt, which is supposed to solve this problem.
More Articles from
Computer Hardware Guide Pg265
2009 Calendar Ms Word
Cable Internet Speed Up
Cad And Cam Software
Cad Design Drafting Services
Cad Drafting And Design
Call Center Scheduling Software
Call Centre In India
Camcorder Batteries For Jvc
Camera Lenses How To
Camera On A Tripod
Camera Phone The Game And Ne Yo
Customer Needs And Expectations
Engineering Design And Manufacturing
In Living Color Family
International Calling From India
The Best Dvd Player
The Green Marketing Manifesto
Tv With Cablecard Slot
Calendars and the Measurement of Time
Calling All Businesses - Online Answering Services, The Next Big Thing?
» More on
Computer Hardware Guide
  • Related Articles
  • Author
  • Most Popular
•Affordable Housing Programs In, by Admin
•Alcohol Treatment Programs In, by Justin Boyce
•Anger Management Programs In, by Johnjames
•Art Programs In Schools, by Eric Hines
•Best Mba Programs In The World, by Susan Slobac
Davide Guolo has sinced written about articles on various topics from computers and the internet. If you want to know more about DOS, Unix, host printing to Windows printers, visit: http://www.printfil.com. Davide Guolo's top article generates over 720 views. to your Favourites.
Best Place To Buy Plants
Only time can tell where this business model will evolve to, but it seems clear that it will call for quickly covering the pond with water lilies that have the practical effect of helping people get m...
 
A Guide to Business | Guide to Technology | Guide to Women | Guide to Health | Family Guide to | Travel & Vacations | Information on Cars

EditorialToday IT Hardwares has 2 sub sections. Such as Computer Guide and Hardware. With over 20,000 authors and writers, we are a well known online resource and editorial services site in United Kingdom, Canada & America . Here, we cover all the major topics from self help guide to A Guide to Business, Guide to Finance, Ideas for Marketing, Legal Guide, Lettre De Motivation, Guide to Insurance, Guide to Health, Guide to Medical, Military Service, Guide to Women, Pet Guide, Politics and Policy , Guide to Technology, The Travel Guide, Information on Cars, Entertainment Guide, Family Guide to, Hobbies and Interests, Quality Home Improvement, Arts & Humanities and many more.
About Editorial Today | Contact Us | Terms of Use | Submit an Article | Our Authors