SHELL Command and Notepad.exe

DragsterMBPDragsterMBP Member Posts: 12
edited 2006-09-22 in NAV Tips & Tricks
I had trouble executing the Notepad.exe from Navision 4.0 and read some fine alternatives in this forum how to solve the issue about Navision 4.0 not containing the path to notepad.exe which doesent want to run without the full path.
I have solved the problem a little different, and here are the examples:

From C/SIDE Referenceguide:
SHELL('C:\Windows\notepad.exe','C:\MyTextFile.txt');
[-X

To avoid the full path:

WinDir := ENVIRON('windir');
SHELL(WinDir+'\notepad.exe','C:\MyTextFile.txt');
\:D/

Hope this is usefull.

Comments

  • krikikriki Member, Moderator Posts: 9,094
    [Topic moved from Navision forum to Navision Tips & Tricks forum]
    Wow! It doesn't happen often I can move a post TO Tips & Tricks! \:D/
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.