The command line is required because the ".nnn" extension is not associated with MyProgram.exe. This shortcut opens both the program AND the desired file within it.
I'm wondering if it's possible to incorporate a similar command line into a function like the following so that it, too, will open a non-associated file. If so, how?
This is really intended to be the equivalent of double clicking on a file in Explorer (so it works on non-executable files too, e.g. ##OPEN() on a .TXT will open it in Notepad).
I don't think it will work with parameters, etc. but you can try it. You can also try ##RUN() which is WinExec/CreateProcess which does allow command line parameters but (AFAIK) must contain path to an EXE program
With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.
Disclosure:
Our company's websites' content (including this website's content) includes advertisements for
our own company's websites, products, and services,
and for other organization's websites, products, and services.
In the case of links to other organization's websites,
our company may receive a payment, (1) if you purchase products or services,
or (2) if you sign-up for third party offers, after following links from this website.
Unless specifically otherwise stated, information about other organization's products and services,
is based on information provided by that organization,
the product/service vendor, and/or publicly available information - and should
not be taken to mean that we have used the product/service in question.
Additionally, our company's websites contain some adverts which we are paid
to display, but whose content is not selected by us, such as Google AdSense ads. For more
detailed information, please see Advertising/Endorsements Disclosures