I want to open a file with the application associated with that file
extension.
E.g. I have an Excel file (*.xls) and I want to open it in Excel.

If the file name doesn't contain any spaces then the following works on
Windows.

wd 'winexec "cmd /C ',filename,'" sw_hide'

How can I accomplish something similar if the file name contains spaces?

Is it possible to come up with a platform agnostic version?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to