Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!rochester!pt!b.gp.cs.cmu.edu!ralf
From: ralf@b.gp.cs.cmu.edu (Ralf Brown)
Newsgroups: comp.sys.ibm.pc
Subject: Re: Using SHIFT-PrtSc in a Batch File ?
Message-ID: <63@b.gp.cs.cmu.edu>
Date: Tue, 14-Jul-87 23:14:23 EDT
Article-I.D.: b.63
Posted: Tue Jul 14 23:14:23 1987
Date-Received: Fri, 17-Jul-87 01:56:22 EDT
References: <309@petro.UUCP>
Organization: Carnegie-Mellon University, CS/RI
Lines: 34
Keywords: PrtSc batch file

In article <309@petro.UUCP> cmanis@petro.UUCP (Cliff Manis) writes:
>I need to be able to print the screen in a batch file.  Using Shift-PrtSc or
>whatever.  Does anyone have a program that can do this.  There must be some
>hooks somewhere in DOS.  I am using IBM DOS 3.1   Thanks for any help, and
>am awaiting any results of this msg.
>
>Cliff Manis      (..!seismo!gatech!petro!cmanis)
>                San Antonio, Texas 

Try this little four-byte program (DEBUG script--run DEBUG, then type the
following exactly, including the blank line)

	a100
	int 5
	int 20

	rcx
	4
	n prtsc.com
	w
	q

This invokes the same routine shift-PrtSc invokes.  To use it, include the
line
	PRTSC
in your batch file (preferably with ECHO OFF).

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
ARPA:  RALF@B.GP.CS.CMU.EDU               USnail: Ralf Brown
AT&T:  (412) 268-3053 (school)                    Computer Science Department
                                                  Carnegie-Mellon University
DISCLAIMER?  Who ever said I claimed anything?    Pittsburgh, PA 15213
"I do not fear computers.  I fear the lack of them..." -- Isaac Asimov