Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!agate!labrea!decwrl!hplabs!hp-sdd!megatek!spot!hollen From: hollen@spot.megatek.uucp (Dion Hollenbeck) Newsgroups: comp.sys.ibm.pc Subject: Re: shift-print sreen from .bat file Message-ID: <394@megatek.UUCP> Date: 4 Nov 88 22:06:24 GMT References: <421@caldwr.UUCP> Sender: news@megatek.UUCP Lines: 36 From article <421@caldwr.UUCP>, by kwongj@caldwr.UUCP (James Kwong): > Does anyone know of a way to get a .bat file to do a > shift-print screen?? > Create a .com program which is run by your .bat file to do it for you. The easiest way is with debug. A> debug - A100 assemble at location 100 xxxx:0100 INT 5 software interrupt 5 xxxx:0102 RET program return xxxx:0103 end entering assembly - RCX open CX register CX 0000 debug giving contents of CX :3 you enter file length - N PRTSC.COM you enter file name - W you tell debug to write file - Q quit debug When you run the file prtsc.com, it will invoke in a software fashion the interrupt 5 vector which is the normal print screen vector. This is normally invoked by the keyboard handler when you do the SHIFT-PRTSC combo. Dion Hollenbeck (619) 455-5590 x2814 Megatek Corporation, 9645 Scranton Road, San Diego, CA 92121 seismo!s3sun!megatek!hollen ames!scubed/