how to avoid file download?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fixertool

    how to avoid file download?

    I made a little app in vb.net. Just some buttons for calling other
    apps. I mean: when I click a button, the action requested is to launch
    directly another program.
    Locally works fine. But when you try the same thing via tsweb, the
    target program is not launched, but appears the typical download
    message box asking for open or download the respective .exe. If you
    click Open, then the program runs well.
    The action I want is when you click a button, the program called is
    launched directly.
    I've used Process.Start(" \\folder\app.ex e") for calling the programs,
    when clicking a button.
    Thanks in advance

  • fixertool

    #2
    Re: how to avoid file download?

    And by the way: Yes, I use the line
    Imports System.Diagnost ics

    Then I have
    Private strPath As String = "\\files\workPl ace\prod2008\ap p.exe"

    And when you click the button

    Process.Start(s trPath)

    Comment

    • Jeff Gaines

      #3
      Re: how to avoid file download?

      On 15/02/2008 in message
      <0a27b883-376b-48be-95ae-fdd38154e69e@e2 5g2000prg.googl egroups.com>
      fixertool wrote:
      >Locally works fine. But when you try the same thing via tsweb, the
      >target program is not launched, but appears the typical download
      >message box asking for open or download the respective .exe. If you
      >click Open, then the program runs well.
      >The action I want is when you click a button, the program called is
      >launched directly.
      There are several issues you need to consider here including:
      -Do you have the appropriate permissions to run the program on the server
      it is on?
      -Will the program run on the server, e.g. if it's a Linux server as most
      are it won't be able to run a non-Linux app.

      What would be the result of anybody being able to run a program on
      somebody else's computer over the Internet?

      --
      Jeff Gaines

      Comment

      • fixertool

        #4
        Re: how to avoid file download?

        I have all the permissions. The program run on a win server, it's an
        intranet (with permissions, etc). No problem who's able to run the
        program or when and so on.
        I was asking for a programming solution. I guess the problem is with
        Process.Start. In the second post I explained how I'm using it. Maybe
        theres is something missing. Why when i'm trying to call an
        external .exe (with all permissions and all that song) the target is
        not launched?
        Thanks in advance

        On 15 feb, 13:13, "Jeff Gaines" <whitedra...@ne wsgroups.nospam wrote:
        >
        There are several issues you need to consider here including:
        -Do you have the appropriate permissions to run the program on the server
        it is on?
        -Will the program run on the server, e.g. if it's a Linux server as most
        are it won't be able to run a non-Linux app.
        >
        What would be the result of anybody being able to run a program on
        somebody else's computer over the Internet?
        >
        --
        Jeff Gaines

        Comment

        Working...