in reply to Launching a data file in Win32 using the assciated application automatically
I've just uploaded a new version (0.14.0) of Win32::FileOp to my page and CPAN that allows you to call the Win32 API function ShellExecute like this:
use Win32::FileOp qw(:EXECUTE); ShellExecute $filename; ShellExecute 'edit', $filename; ShellExecute 'edit', $filename, {show => SW_SHOWMAXIMIZED}; ShellExecute $exefilename, { params => 'some params', show => SW_SHOWMAXIMIZED }; ...
Let me know if you have any problems with it :-)
Jenda
Always code as if the guy who ends up maintaining your code
will be a violent psychopath who knows where you live.
-- Rick Osborne
P.S.: It will not be on CPAN immediately! You can get if from my page or via PPM from http://jenda.krynicky.cz/perl
Edit by castaway: Closed small tag in signature
|
|---|