Re: To drag a file as parameter to script



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





.



Relevant Pages

  • Re: Prevent Password From Being Echoed
    ... > I have a script that prompts for a password with something like this: ... title drag this window back up so you can see it again. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: To drag a file as parameter to script
    ... any clicking of options or whatever when you drag the file to your ... those .prn files by copying them to printers. ... develop a script with the copy command inside and let users drag and ... I want to development a script to print files to a print queue. ...
    (microsoft.public.scripting.wsh)
  • Re: To drag a file as parameter to script
    ... want to develop a script for this printing purpose. ... any clicking of options or whatever when you drag the file to your ... those .prn files by copying them to printers. ... I want to development a script to print files to a print queue. ...
    (microsoft.public.scripting.wsh)
  • Re: How come this Script Doesnt work?
    ... delimeted text file icon on the script icon, it gives the script the file ... studentid vbTAB isinternational vbTAB isresident vbTAB index ... Just drag and drop the file on the script and you'll see what I mean. ...
    (microsoft.public.scripting.vbscript)
  • Re: How come this Script Doesnt work?
    ... If I drag and drop the file on the script, ... If I drag and drop the delimited text file onto the script, it will read the delimited text file, however, it won't write to the new file. ... > fout.WriteLine str ...
    (microsoft.public.scripting.vbscript)