Re: To drag a file as parameter to script
- From: "Al Dunbar" <AlanDrub@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 1 Feb 2008 09:17:10 -0700
I have never drag and dropped .prn files to a printer, but since they are
already in the format that the printer needs, this seems likely to work - as
long as the printer is compatible with the drive that produced the .prn
file.
But you may not realize that other non-printer-ready files can also be
dragged onto a shortcut to the printer. I do this with MS word documents all
the time, especially when I have a bunch to print. Of course the printer
itself does not print the file directly. Rather it recognizes the file type
association, and invokes the required application, passing the name and path
of the document along with a command-line parameter (typically "/p", but it
may be different for other applications). Word (or whatever the application)
then opens the file, prints it, then closes.
Yes, it is a nuisance to see the word window pop up on the screen, but it is
simpler than loading each document manually, printing it, and closing the
window, as it is all done in one fell swoop - group select, and
drag-and-drop.
A scripted version might work as well, but it would still need to open the
document in the appropriate application. You might be able to open in an
invisible window to reduce the unsightly opening/closing of windows (which,
by the way, make it difficult to be doing anything else on your computer).
My fear with this approach is that you might not be aware of problems that
the application may report. And if nothing prints, what would you do about
it?
/Al
"Pakeon" <Pakeon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9CC44DB6-3590-47CB-A17B-355A87F7D954@xxxxxxxxxxxxxxxx
Actually some documents are printed to .prn files. I know the way to print
those .prn files by copying them to printers. I just want to know if I can
develop a script with the copy command inside and let users drag and drop
the
.prn files to the script as prarameter, then they can get the printout.
Thanks in advance.
Pakeon
"Al Dunbar" wrote:
"Pakeon" <Pakeon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:190A77A4-FA19-46E7-9AE2-54137F2E955D@xxxxxxxxxxxxxxxx
Hi,
I want to development a script to print files to a print queue. What I
want
to do is to drag and drop the file to this script and then the script
will
print this file to a specified print queue. Is it possible to do this?
Probably. But since you could also drag-and-drop the files to a shortcut
to
the desired print queue (no scripting involved), I suspect that you have
other requirements that you have not yet told us yet....
/Al
.
- Follow-Ups:
- Re: To drag a file as parameter to script
- From: Stefan Kanthak
- Re: To drag a file as parameter to script
- Prev by Date: Re: behaviour of AddWindowsPrinterConenction method
- Next by Date: Re: Modify Registry
- Previous by thread: Re: To drag a file as parameter to script
- Next by thread: Re: To drag a file as parameter to script
- Index(es):
Relevant Pages
|