Call windows explorer

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

Comments

  • McClane
    McClane 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.
  • ara3n
    ara3n Member Posts: 9,258
    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
  • ab
    ab Member Posts: 37
    Thanks ! :D:D
  • Nagi
    Nagi 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.
  • Savatage
    Savatage Member Posts: 7,142
    ex/
    explorer.exe C:

    opens the c drive
  • tinoruijs
    tinoruijs 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