Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!rutgers!clyde!cuae2!ihnp4!inuxc!pur-ee!uiucdcs!uxc.cso.uiuc.edu!crimmins From: crimmins@uxc.cso.uiuc.edu Newsgroups: comp.sys.ibm.pc Subject: Re: printing > 10 files Message-ID: <174200015@uxc.cso.uiuc.edu> Date: Fri, 19-Dec-86 11:54:00 EST Article-I.D.: uxc.174200015 Posted: Fri Dec 19 11:54:00 1986 Date-Received: Wed, 24-Dec-86 21:46:54 EST References: <88@bcsaic.UUCP> Lines: 34 Nf-ID: #R:bcsaic.UUCP:88:uxc.cso.uiuc.edu:174200015:000:1586 Nf-From: uxc.cso.uiuc.edu!crimmins Dec 19 10:54:00 1986 /* Written 2:29 pm Dec 16, 1986 by michaelm@bcsaic.UUCP in uxc.cso.uiuc.edu:comp.sys.ibm.pc */ >session, then print them later on (like overnight). The trouble is that >MS-DOS, wretched excuse for an OS that it is, only allows 10 files to be in >the print queue at a time. And since the print command just queues things up, >you can't just run it in a loop and tell it to print one file after another. >(It will go through the loop 10 times, then die.) > >My next thought (thinking in terms of Unix shell scripts) was that I could >make some kind of a loop like the following in a batch file: > for %F in * print1 %F Why not avoid the whole mess with print by using type or copy instead? You could easily write a batch loop like you have above. For example, for %%f in (*.prn) do type %%f>prn will print all files with an extension of .prn and there are no limits on the number of files. Note that this will not insert form feeds between files. If you want them, you can create a file that contains only a form feed character by typing copy con ff.txt (or any other appropriate filename), typing a ctrl-L, and then pressingand return. Then modify your batch file to say for %%f in (*.prn) do copy %%f+ff.txt prn This should eliminate your problem and give you the same results as print would have. ---- Dan Crimmins University of Illinois at Urbana-Champaign Computing Services Office - Micro Consulting Dept. ARPA: crimmins@uiucuxc.cso.uiuc.edu BITNET: crimmins@uiucuxc.bitnet CSNET: crimmins@uiucuxc.csnet UUCP: {ihnp4,pur-ee,convex}!uiucdcs!uiucuxc!crimmins