more useful options | |
PerlMonks |
Re^5: Win32 wperl open Console when systemby afoken (Chancellor) |
on Jan 21, 2020 at 14:58 UTC ( [id://11111684]=note: print w/replies, xml ) | Need Help?? |
The "normal" way to open any file on Windows is to invoke ShellExecute() with hwnd set to 0, lpOperation set to NULL or to "open", lpFile set to the file to be opened, lpParameters and lpDirectory set to NULL, and nShowCmd set to SW_SHOWNORMAL. In other words:
This should be equal to a double click on the respective file. I'm to lazy to search for a module exporting ShellExecute(), Win32::API should be able to import that function from shell32.dll. Update: Win32::FileOp exports ShellExecute(). Win32::GUI also has a ShellExecute() method, burried somewhere. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|