Call windows explorer

abab Member Posts: 37
What do I have to do to call windows explorer from C/AL ?

Comments

  • McClaneMcClane Member Posts: 40
    Depends on what you want to do with it. If you just want to start the explorer:
    shell('C:\windows\explorer.exe');
    
    if c:\windows is the path to your windows directory.
  • ara3nara3n Member Posts: 9,256
    Also if you want to open a website use hyperlink
    hyperlink('www.google.com');
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • abab Member Posts: 37
    Thanks ! :D:D
  • NagiNagi Member Posts: 151
    Just adding a little to what was said above; If you include the executable path in a text constant and then use SHELL(yourtextconstant) instead, then the user won't have to confirm that whatever program is executed is a trusted source.
  • SavatageSavatage Member Posts: 7,142
    ex/
    explorer.exe C:

    opens the c drive
  • tinoruijstinoruijs Member Posts: 1,226
    ara3n wrote:
    Also if you want to open a website use hyperlink
    hyperlink('www.google.com');
    

    Hyperlink can also open files in the program that's setup for the particular extension.

    HYPERLINK('c:\test.xls') opens text.xls in Excel (or another spreadsheet-program which can open .xsl).

    Tino Ruijs
    Microsoft Dynamics NAV specialist
Sign In or Register to comment.