Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Launching a data file in Win32 using the assciated application automatically

by Jenda (Abbot)
on May 04, 2003 at 21:35 UTC ( [id://255520]=note: print w/replies, xml ) Need Help??


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

  • Comment on Re: Launching a data file in Win32 using the assciated application automatically
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://255520]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (8)
As of 2024-04-20 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found