"Marco Shaw [MVP]" wrote:
> > With the PS script, I want to make a batch processing over a lot of
> > documents. In some cases, a word file might be used by another user or
> > there
> > might be a further inquiry with a dialogbox. In this case, the script will
> > wait for an user interaction. Is it possible to make a automation for
> > those
> > user inquiries?
> > Thanks a lot for helping me! :-) >
> Are you able to provide a bit more details? I'd like to think you can do
> anything...
>
> Marco
> Hi Marco,
in detail, we want to check every word document for the used template path.
A lot of documents are containing a private network path. If you open this
document outside the intranet, it takes several minutes. So, we want to check
for the path with:
....
$template = $wordDoc.AttachedTemplate.FullName
if ($template.Contains("`\`\")) {
....
If there is a reference to a private networt path, we change and save the
file.
The problem is now, that a lot of files require a user interaction while
opening the file with powershell. For example, if another user has the file
in use, a dialog box will appear and the powershell script will stop and
wait. I want to know, how it is possible to handle those user interactions
with powershell. Do you need more details?
Best wishes!
Volker