Skip to Content
author's profile photo
Former Member

can we run a Local PC executable file from Portal 5.0?

Hi,

we need to run an executable file located on the local PC from EP 5.0. we even need to run the same file from portal server.

can any one please guide me how to do that? I appreciate if you can send any code or path to meet this task.

thanks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Apr 23, 2004 at 11:57 AM

    Due to security reasons this is not easy and require the user to approve the action depending on security settings

    Since most users are using IE, we use VBSCRIPT

    <script language=VBScript> 
    sub execute 
     set objShell=CreateObject("Wscript.Shell") 
    
     objShell.Run("notepad") 
    end sub 
    </script> 
    

    Here I think notepad must be in the path of the user.

    There are also some specific ways to open office applications if they are installed, think its through CreateObject("Word.Application") but cannot remember.

    I am not going to lecture you on the horrible usability of this, especially if the portal is open to the internet

    [code]

    Add comment
    10|10000 characters needed characters exceeded