> -----Original Message-----
> From: Jenda Krynicky [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 07, 2004 6:14 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Open file with default application software on Windows ?
> 
> 
> From: "NYIMI Jose \(BMB\)" <[EMAIL PROTECTED]>
> > > -----Original Message-----
> > > From: Jenda Krynicky [mailto:[EMAIL PROTECTED]
> > > The system('start file.doc') only allows you to trigger 
> the default
> > > action defined for the file type. If you want to use the other
> > > actions you might like    use Win32::FileOp qw(ShellExecute);
> > >   ShellExecute 'Print' => 'c:\temp.doc';
> > 
> > ShellExecute $operation => $file;
> > 
> > How to find the list of available $operations ?
> > 
> > The doc says:
> > "$operation : specifies the action to perform. The set of available 
> > operations depends on the file type. Generally, the actions 
> available 
> > from an object's shortcut menu are available verbs."
> > 
> > "object's shortcut menu" ?
> > Could you elaborate please :-) ?
> 
> You can either find the list of actions if you manualy rightclick a 
> file of that type in Windows Explorer (the topmost section of the 
> menu except "Open With") or go to the registry (regedit.exe) go to 
> HKEY_CLASSES_ROOT\.doc, look at the default value (the type of the 
> file), then go to HKEY_CLASSES_ROOT\<the_type>\Shell and the subkeys 
> are the different available actions. ShellExecute lets you use either 
> the name of the subkeys or the title specified in the default value 
> in that subkey.
> 
> If you need to find the list of actions programaticaly you just use 
> Win32::Registry ro Tie::Registry to do the same. Find the type from 
> HKEY_CLASSES_ROOT\.ext, go to HKEY_CLASSES_ROOT\<the_type>\Shell and 
> list the subkeys.
> 
> HTH, Jenda
> P.S.: Please do not CC me on emails sent to the list. Both 
> emails end up in the same folder anyway.
> 

Great !
I think you should add such info in the module documenation.

Thanks,

José.


**** DISCLAIMER ****

"This e-mail and any attachment thereto may contain information which is confidential 
and/or protected by intellectual property rights and are intended for the sole use of 
the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or 
partial reproduction, communication or distribution in any form) by other persons than 
the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer".

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at 
http://www.proximus.be or refer to any Proximus agent.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to