Here is what I use to get around this issue, while maintaining some semblence of security.
Install the free ClickYes. Running this all the time will totally defeat the security. To maintain some level of security, I use this (ugh) BAT file.
echo %echo% off
set prog="C:\Program Files\Express ClickYes\ClickYes.exe"
Echo %prog% - Starting
start "Run Async sam window(/B)" /B %prog% -activate
sleep 60
Echo Stopping it .....
%prog% -stop
Echo All over now...
Run the BAT file, then start your perl script. If your script takes longer than a minute to run, adjust the hard-coded sleep time.
You could easily incorporate the BAT file functionality into your script. In my case, I was not running a perl script - it was an Excel macro written by someone else.
"For every complex problem, there is a simple answer ... and it is wrong." --H.L. Mencken
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.