PC Review


Reply
Thread Tools Rate Thread

how to avoid file download?

 
 
fixertool
Guest
Posts: n/a
 
      15th Feb 2008
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

 
Reply With Quote
 
 
 
 
fixertool
Guest
Posts: n/a
 
      15th Feb 2008
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)
 
Reply With Quote
 
Jeff Gaines
Guest
Posts: n/a
 
      15th Feb 2008
On 15/02/2008 in message
<0a27b883-376b-48be-95ae-(E-Mail Removed)>
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
 
Reply With Quote
 
fixertool
Guest
Posts: n/a
 
      15th Feb 2008
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...@newsgroups.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



 
Reply With Quote
 
Family Tree Mike
Guest
Posts: n/a
 
      16th Feb 2008
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.

"fixertool" wrote:

> 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...@newsgroups.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

>
>
>

 
Reply With Quote
 
fixertool
Guest
Posts: n/a
 
      19th Feb 2008
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.

On 16 feb, 11:14, Family Tree Mike
<FamilyTreeM...@discussions.microsoft.com> wrote:
> 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.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE 6.0 Unable to Download files - Attempting to When you attempt to download a file from a Web site, the Copying dialog box may appear ... Internet Explorer Window Closes When You Click a Download Link . Robert Cox Windows XP Internet Explorer 6 5th Sep 2007 09:08 PM
How to avoid file download warnings for links to Internet shortcut files? jannordgreen@gmail.com Windows XP Internet Explorer 0 1st May 2006 03:25 PM
How avoid javascript file to be download. =?Utf-8?B?UnVsaW4gSG9uZw==?= Microsoft ASP .NET 2 15th Mar 2005 10:59 PM
Dangerous Download to Avoid jeeper@_______.com Anti-Virus 64 18th Jan 2005 09:26 PM
avoid duplicate kazaa download for 2nd user in XP? syobahan Windows XP Music 2 17th Nov 2003 08:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:36 PM.