Amazines Free Article Archive
www.amazines.com - Tuesday, February 09, 2010
Read about the most recent changes and happenings at Amazines.com
Log into your account or register as a new author. Start submitting your articles right now!
Search our database for articles.
Subscribe to receive articles emailed straight to your email account. You may choose multiple categories.
View our newest articles submitted by our authors.
View our most top rated articles rated by our visitors.
* Please note that this is NOT the ARTICLE manager
Add a new EZINE, or manage your EZINE submission.
Add fresh, free web content to your site such as newest articles, web tools, and quotes with a single piece of code!
Home What's New? Submit/Manage Articles Latest Posts Top Rated Article Search Subscriptions Manage Ezines
CATEGORIES
 Article Archive
 Advertising (26589)
 Advice (44900)
 Affiliate Programs (13537)
 Art and Culture (14224)
 Automotive (26489)
 Blogs (9272)
 Boating (1448)
 Books (3003)
 Buddhism (277)
 Business (173358)
 Business News (15500)
 Business Opportunities (26296)
 Camping (2108)
 Career (14886)
 Christianity (5328)
 Collecting (1918)
 Communication (34557)
 Computers (37857)
 Construction (3940)
 Consumer (14163)
 Cooking (4718)
 Copywriting (1478)
 Crafts (3550)
 Cuisine (1491)
 Current Affairs (5319)
 Dating (20250)
 EBooks (6036)
 E-Commerce (12863)
 Education (31332)
 Electronics (15797)
 Email (1872)
 Entertainment (38019)
 Environment (9042)
 Ezine (772)
 Ezine Publishing (2607)
 Ezine Sites (689)
 Family & Parenting (32649)
 Fashion & Cosmetics (38466)
 Female Entrepreneurs (3647)
 Finance & Investment (98864)
 Fitness (36780)
 Food & Beverages (14860)
 Free Web Resources (2322)
 Gambling (9567)
 Gardening (7523)
 Government (3109)
 Health (166361)
 Hinduism (41)
 Hobbies (18011)
 Home Business (24859)
 Home Improvement (41875)
 Home Repair (10679)
 Humor (1637)
 Import - Export (941)
 Insurance (13881)
 Interior Design (7561)
 International Property (1182)
 Internet (40990)
 Internet Marketing (60059)
 Investment (8710)
 Islam (26)
 Law (12607)
 Link Popularity (1247)
 Manufacturing (2900)
 Marketing (36127)
 MLM (7169)
 Motivation (10972)
 Music (6038)
 New to the Internet (2918)
 Non-Profit Organizations (998)
 Online Shopping (26003)
 Organizing (1771)
 Party Ideas (3999)
 Pets (12752)
 Poetry (396)
 Press Release (3836)
 Public Speaking (1515)
 Publishing (2395)
 Quotes (459)
 Real Estate (34179)
 Recreation & Leisure (29726)
 Relationships (36893)
 Research (2937)
 Sales (18109)
 Science & Technology (16205)
 Search Engines (6173)
 Self Improvement (47742)
 Seniors (1823)
 Sexuality (14593)
 Small Business (15838)
 Software (16426)
 Spiritual (9472)
 Sports (29352)
 Tax (2623)
 Telecommuting (9432)
 Travel & Tourism (51588)
 UK Property Investment (748)
 Video Games (794)
 Web Traffic (4650)
 Website Design (14026)
 Website Promotion (14500)
 World News (1000+)
 Writing (9978)
Author Spotlight
PAUL HEMMANT

Paul Hemmant is a business coach and mentor that assists serious entrepreneurs in building a profita...more
DAVE NETTLES

David Nettles lives in South Florida and runs his home-based business part-time. He is also the publ...more
ADAM MORIEN

OMNI Marketing is a Los Angeles Internet Marketing Company with over 12 years of experience providin...more
JAMES HALM

A career entrepreneur currently involved in starting a franchising business, running a nonprofit, ta...more
STAN PROKOP

Stan Prokop is the founder of 7 Park Avenue Financial. See www.7parkavenuefinancial.com The comp...more
WILLIAM COLBERT

William Colbert is a natural health enthusiast. Discover what are the best natural ingredients for ...more
MICHAEL KING

I provide helpful information so people can lower their electric bills. I have reviewed the top rene...more
LINDA AVILES

Linda is the vice president and co-founder of Multi Shop Stop. Always had a gift for redecorating ev...more
MICHEL WALSH

An entertaining and informative professional writer; weekly media columnist; excellent reputation. F...more
RYAN BIDDULPH

I am an internet marketer and inspirational author. I teach how to market my online ventures. I al...more






Google
 




Article Author Biography
How to make DOS programs printing faster in Windows by DAVIDE GUOLO
Article Posted: 09/28/2007
Article Views: 593
Articles Written: 1
Word Count: 908
Article Votes: 2
AddThis Social Bookmark Button

How to make DOS programs printing faster in Windows

Computers,Software

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.

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

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 further articles I'll 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.


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 percent while using your DOS program, then you're experiencing this problem.

A DOS programmer cannot do much for this problem because the keyboard polling routine is usually implemented in a low level routine inside the DOS compiler itself. Fortunately some patches has been released for popular DOS compilers to include a "release CPU" command inside that loop.

You can find some of the DOS 100% CPU patches at the Citrix website.

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.

Related Articles - dos printing, dos print windows, dos print slow, LPT Timeout, DOS CPU usage, 100% CPU,

Email this Article to a Friend!

Receive Articles like this one direct to your email box!
Subscribe for free today!

 Rate This Article  
Completely useless, should be removed from directory.
Minimal useful information.
Decent and informative.
Great article, very informative and helpful.
A 'Must Read'.

 

Do you Agree or Disagree? Have a Comment? POST IT!

 Reader Opinions 
Submit your comments and they will be posted here.
Make this comment or to the Author only:
Name:
Email:
*Your email will NOT be posted. This is for administrative purposes only.
Comments: *Your Comments WILL be posted to the Author only if you select PRIVATE and to this page is you select PUBLIC, so write accordingly.
 
Please enter the code in the image:


 Author Login 
Email Address:

Password:


Forgot your password?
Register for Author Account

 

Advertiser Login

 

ADVERTISE HERE NOW!
   Limited Time $60 Offer!
 

 

HomeLinksAbout UsContact UsPrivacy PolicyFAQResources
Copyright © 2010, All rights reserved.
Some pages may contain portions of text relating to certain topics obtained from wikipedia.org under the GNU FDL license