Hi
in Navision 3.70 I use the following CAL Code to open files with their associated application.
>>Execute := STRSUBSTNO('start "" "%1"',"Filename incl. Path");
>>SHELL('cmd','/c',Execute);
This code uses the "start" command of the windows command shell to open a file with its associated application.
Now, when I use the exactly same CAL Code on an Navision 4.0 Client, I get the Error Message:
"The Operation systam cannot find the file 'cmd'."
I know I could use the CAL Command "HYPERLINK" instead, but the customer wants to store Links to external files using UNC paths.
When I use HYPERLINK with UNC Path, Internet Explorer opens and tells me, it cannot open the file.
Does anyone have a solution for that?
Solutions without using any third parity tools are prefered.
Bye,
Rolf
0
Answers
or search the forum for "Windows Script Host Object Model" to avoid an anoying confirmation-box from MS.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
There is no executable 'cmd' file in OS
Regards,
Slawek Guzek.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
using "SHELL(ENVIRON('comspec'),'/C',Execute );" works.
Bye,
Rolf