Shell(...) and windows system directories

mr.burns
mr.burns Member Posts: 39
Hi all,

in Navision 3.70 I could use following statement successfully:

SHELL('notepad.exe');

Under NAV 2009 it says someting like:

Operating system cannot find the file notepad.exe

But if I enter the full path C:\windows... then it works.

Since we use english and german and japaneese Windows I need to use the windows directory variables like:

%WINDOWS%\\%SYSTEM\\XYZ.exe

But this does not work in NAV 2009, same message 'Operating system cannot find...'
So how I can run my executable if I have windows in different languages?

Thanks for any support!

Comments

  • kriki
    kriki Member, Moderator Posts: 9,135
    Give this one a try : http://www.mibuso.com/forum/viewtopic.php?t=12417.


    [Topic moved from 'NAV 2009' forum to 'NAV/Navision' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • gob_Behnke
    gob_Behnke Member Posts: 14
    Hello mr.burns,

    one possibility - just a workaround though - is to use a text constant for the path.
    Something like this for example:
    SHELL(TEXT000);
    For each different language you could enter a translation in the Multilanguage Editor.
    This would care about different languages, cause if you use a japanese Version of Navision and a japanese Windows, and you have
    translated your Text Constant according to the language version, the correct path would be used.
    However,I guess it will not work, if you use always the english Version of Navision.


    Best regards