how to avoid file download?

F

fixertool

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.exe") for calling the programs,
when clicking a button.
Thanks in advance
 
F

fixertool

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

Then I have
Private strPath As String = "\\files\workPlace\prod2008\app.exe"

And when you click the button

Process.Start(strPath)
 
J

Jeff Gaines

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?
 
F

fixertool

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
 
F

Family Tree Mike

But what isn't clear to me is the following: Can you run the second
application from a command window on the client pc via the same string that
you pass to the process.start? ("\\files\workPlace\prod2008\app.exe") from
your other post.
 
F

fixertool

Yes, I can do that.
It's a weird behaviour. Why if I pass a string to the process.start
associated with the button, it attempts to "download" the exe file of
the application, instead of directly launching it?
I mean, locally it works correctly as expected. But on the client pc,
when you click the button, appears a message box asking for open or
download. If you click open obviiously the second app is launched.
But I don't want the final users see that box.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top