in reply to open programs with a particular file!
If the program you want to start is associate with the filetype of the file you want it to load, then a simple
system 'path\to\file.ext';
will start the default application for that filetype, passing it the filename via it's command line.
The perl script will not wait for the program started to end if it is a GUI app. All the usual caveats about backslashes, spaces in pathnames etc., apply. This is an implicit 'start' command being issued by cmd.exe, and you should read the help for that command for further info.
If you want to open a file in a particular application, which is not the current default for that filetype, then you will have to use both the command and the filename on the command line in the normal way.
|
|---|