Wow !! As you mentioned, thaz EXACTLY what I want :-)) Thousands Thanks !!! Bee
----- Original Message ----- From: "David le Blanc" <[EMAIL PROTECTED]> To: "Bee" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, October 07, 2004 7:11 PM Subject: Re: Open file with default application software on Windows ? > Search for a program called 'shellexec'. (use google). > > Shellexec does exactly what you want, but its a windows executable, so > instead of calling > defopen "something"; > > try > > system("shellexec something"); > > you should be able to download shellexec or an equivalent from many places. > > As for portable? Its portable among the various platforms that run > word-4-windows (duh) > > > > On Thu, 7 Oct 2004 18:21:21 +0800, Bee <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I am curious to know that if that is an existed module to open files with it's default application just like I > > double click on the file with mouse. and I do something just like this with my code : > > > > use defaultOpen; > > defOpen 'C:\temp.gif' or die "$!" ; # Then the image will open with photoshop. > > defOpen 'C:\temp.doc' or die "$!" ; # then the document will open with Word. > > > > I've made this done by writting a batch like code.. but I sure that's unsafe and unportable. > > > > Thanks for any hint, > > Bee > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>