none
Launching a client application from a Links list

    Question

  • Hi Everyone,

    How can I launch a client application such as SAP from a link in WSS 3.0?  Since SAP is used on a daily basis by my users they would like to have a quick link on the site.  Is this possible?
    Monday, July 20, 2009 5:01 PM

Answers

  • "You can't link to an application which exists on the users computer, either from a url or using custom code (like Process.Start())."

    Yes, you can, but it is not a good practice, and system administrators won't like it, as it usually requires security zone configuration. It's a common requirement on our projects but we try to suggest our clients to forget it.

    For example, the following hyperlink will "dowload" and after a confirmation, launch the Notepad on the client computer. It is not really a link.
    <a href="file:///c:/windows/system32/notepad.exe">Notepad</a><br>
    As far as I remember this link works even with the standard WSS link field. Of course you would not like to "download" an application with several MBs from the local machine just to launch it.

    Similarly you can use links that points to shortcuts that enable starting applications on the local machine.

    More sophisticated approach is to use ActiveX controls (for example WinForms controls embedded into HTML page) as custom field controls, that really launch the specified application on the local computer (assumed the default security policy is mitigated).

    So it can be done, but probably should not.

    Peter
    • Marked as answer by SamCosta Tuesday, July 21, 2009 1:36 AM
    Monday, July 20, 2009 11:08 PM

All replies

  • well I am not I understand your question.  But it doesnt sound like a development question.  You can insert the link into a link list and that sound launch the application. If you are looking to do something more please elaborate on what you are trying to do

    Monday, July 20, 2009 5:13 PM
  • All our staff members have a client application installed on their PCs.  They want me to place a shortcut to the local client app ("C:\Program Files\SAP\SapSetup\setup\SAL\SapLogon.s8l").

    So when you click on the link from SharePoint, it will open the local client app.

    Is this possible?

    Thanks
    Sam
    Monday, July 20, 2009 5:36 PM
  • that is not going to be possible with the linked list.  but you should be able to open the page you want in designer and add the link directly in the page and put it in some basic code to open the a new window .
    Monday, July 20, 2009 6:10 PM
  • But a client application is not a web page. 

    Monday, July 20, 2009 6:54 PM
  • You can't link to an application which exists on the users computer, either from a url or using custom code (like Process.Start()).
    My SharePoint Blog - http://www.davehunter.co.uk/blog
    Monday, July 20, 2009 7:13 PM
  • "You can't link to an application which exists on the users computer, either from a url or using custom code (like Process.Start())."

    Yes, you can, but it is not a good practice, and system administrators won't like it, as it usually requires security zone configuration. It's a common requirement on our projects but we try to suggest our clients to forget it.

    For example, the following hyperlink will "dowload" and after a confirmation, launch the Notepad on the client computer. It is not really a link.
    <a href="file:///c:/windows/system32/notepad.exe">Notepad</a><br>
    As far as I remember this link works even with the standard WSS link field. Of course you would not like to "download" an application with several MBs from the local machine just to launch it.

    Similarly you can use links that points to shortcuts that enable starting applications on the local machine.

    More sophisticated approach is to use ActiveX controls (for example WinForms controls embedded into HTML page) as custom field controls, that really launch the specified application on the local computer (assumed the default security policy is mitigated).

    So it can be done, but probably should not.

    Peter
    • Marked as answer by SamCosta Tuesday, July 21, 2009 1:36 AM
    Monday, July 20, 2009 11:08 PM
  • Thanks Peter, I'll take your advice and not link to a client app.
    Tuesday, July 21, 2009 1:37 AM
  • So Peter, how does a Sharepoint page link to SharePoint designer (a client exe)?

    This seems to be a practise that Microsoft uses and therefore "endorses" ?

    Please advise.


    Dave Anderson

    Sunday, December 22, 2013 5:33 PM