Please refer to this previous EE question:
http://www.expert
Does anyone know if there is a dos command that will redirect a print screen directly to a printer? I would like to be able to print it to a printer instead of pasting it into Paint and then printing it.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Please refer to this previous EE question:
http://www.expert
You can try this BASIC code to access the windows clipboard via DOS
http://www.frontiernet.net
DECLARE FUNCTION ClipClose% ()
DECLARE FUNCTION ClipOpen% ()
DECLARE SUB ClipGetData (ClipSize%, ClipContents$)
DECLARE SUB ClipGetDataSize (ClipSize%)
' Remember to include the /I parameter at the command line
'$INCLUDE: 'qb.bi'
DIM ClipSize%, ClipContents$
DIM SHARED Regs AS RegType
DIM SHARED RegsX AS RegTypeX
CLS
IF ClipOpen% <> 0 THEN
PRINT "The Clipboard has been opened."
END IF
CALL ClipGetDataSize(ClipSize%)
PRINT
PRINT "The Clipboard holds"; ClipSize%; "bytes of information."
CALL ClipGetData(ClipSize%, ClipContents$)
PRINT
PRINT "ClipContents$="; ClipContents$; "*END"
IF ClipClose% <> 0 THEN
PRINT : PRINT "The Clipboard has been closed."
END IF
' 1 if successful, 0 if failed
'
FUNCTION ClipClose%
Regs.ax = &H1708
CALL INTERRUPT(&H2F, Regs, Regs)
ClipClose% = Regs.ax
END FUNCTION
SUB ClipGetData (ClipSize%, ClipContents$)
ClipContents$ = SPACE$(ClipSize%) + CHR$(0)
RegsX.ax = &H1705
RegsX.dx = &H1 'data type held in Clipboard = text
RegsX.es = VARSEG(ClipContents$)
RegsX.bx = SADD(ClipContents$)
CALL INTERRUPTX(&H2F, RegsX, RegsX)
END SUB
SUB ClipGetDataSize (ClipSize%)
Regs.ax = &H1704
Regs.dx = &H1 'data type = text
CALL INTERRUPT(&H2F, Regs, Regs)
ClipSize% = Regs.ax
END SUB
' 1 if successful, 0 if failed'
'
FUNCTION ClipOpen%
Regs.ax = &H1701
CALL INTERRUPT(&H2F, Regs, Regs)
ClipOpen% = Regs.ax
END FUNCTION
Actually, it is possible to directly print documents from the command-prompt.
Share the printer in question, assign it a name (i.e. MFC-8460N in my example)
Method 1 (text file):
copy filename.txt "\\localhost\MFC-8460N"
Met
copy /b filename.prn "\\localhost\MFC-8460N"
Met
net use lpt1 "\\localhost\MFC-8460N"
cop
Method 4:
net use lpt1 "\\localhost\MFC-8460N"
typ
Method 5:
type test > "\\localhost\MFC-8460N"
Met
net use lpt1 "\\localhost\MFC-8460N"
cop
type text to print manually here...
press F6 to print to device
If you do not achieve the results you are looking for trying something similiar to...
http://www.printfil.c
Regards
Giovanni
In other words, whatever you are trying to print to the screen you can redirect to the printer.. let's take a basic directory listing command for example...
C:\>dir
Volume in drive C is SYS
Volume Serial Number is 8477-CA4F
Directory of C:\
11/03/2009 07:51 AM <DIR> .
11/03/2009 07:51 AM <DIR> ..
11/03/2009 07:51 AM 6 test.txt
1 File(s) 6 bytes
2 Dir(s) 394,701,357,056 bytes free
C:\>
To print this output, you would instead redirect the output of the command to the printer...
C:\>dir > "\\localhost\MFC-8460N" 2>&1
C:\>
If you want to actually use the "Print Screen" key from the command line see this article...
http://support.m
See previous post referencing http://support.microsoft.c
The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge. Stephen Hawking
Business Accounts
Answer for Membership
by: alanhardistyPosted on 2009-11-02 at 13:48:57ID: 25724129
No - DOS cannot interpret the screen properly and you will need to use Windows to correctly format the image properly before you can print it.