> the next enhancement i'd like is that i'd really like to get rid of the
| Quote: |  | |
|
> sleep right after that line...i have it there so that there is enough time to
> allow spooling to get done before killing the process. is there a way to do
> something like the following?
>
> ...
> while (acrobat.spooling) { start-sleep 2 }
> killtask /IM acrord32.exe
> ...
>
> some of the docs take 10 secs to spool, others may only take 1-2...also, i
> don't want to accidentaly kill acrord32 while a document is still spooling
> should a larger than normal document come in...
| |
| | |
There doesn't seem to be any kind of interface that PowerShell can use
to talk directly to the reader.
My only suggestion might be to run a session while using something like
ProcessMonitor (
www.sysinternals.com) to see if you can figure out what
the app does when the spooling is done.
If it is a locally attached printer, you might be able to keep an eye on
the printer spool. If you see it in the printer spool, then it has
"left" the reader app.
Marco
--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp
PowerGadgets MVP
http://www.powergadgets.com/mvp
Blog:
http://marcoshaw.blogspot.com