from my aspx page how do I start a process on the local PC?

G

Guest

Hi guys

A have an ASPX page (a main menu) and from it I need to launch existing exes on the local PC that has invoked the page from IE. I'm thinking that I would have to do this via JavaScript but I can't find how to start another process searching numerous sites. I know .NET has the Process object, can I use this to launch a process on the client side? If so how to I tell .NET that I want the process launched n the client side rather than the server side. I'm pretty new to .NET some some sample code would REALLY help!!! Thanks in advance, Steve.
 
A

Armin Zingler

Steven Brooks said:
Hi guys,

A have an ASPX page (a main menu) and from it I need to launch
existing exes on the local PC that has invoked the page from IE. I'm
thinking that I would have to do this via JavaScript but I can't find
how to start another process searching numerous sites. I know .NET
has the Process object, can I use this to launch a process on the
client side? If so how to I tell .NET that I want the process
launched n the client side rather than the server side. I'm pretty
new to .NET some some sample code would REALLY help!!! Thanks in
advance, Steve.

I think microsoft.public.dotnet.framework.aspnet is the right group for this
question, because you want to execute code on the client, and this can not
be done using VB.NET because the client does not receive VB.NET code.
 
F

Ford Prefect alias Armin

No, you can't do that.

..NET is running only on the ServerSide of your ASPX Solution not on your
Clientside
in standard case.

On the Clientside you can only use JavaScript, VBScript ,Java etc.

If anybody could easily launch a proccess on a Client Maschine
then to destroy a Client maschine would be very easy and every dump
Childhacker
would kill all Maschines connected to the Web by sending "FORMAT C:"

This is a security risky thing that's why JavaScript doesn't allows
it.......

What you can do:

Create a ActiveX DLL (or with NET a DLL with a COM Interface)
Install it on every Client Machine that you want to serv.

Or create a ActiveX - OCX Control.
With a Control you can create a Automatic download and install.
So if a customer doesnÄ't has it it can be automaticly downloaded an
installed remote.

The Browser Security has to allow ActiveX !!!
But This it very dangerous for your EndUser because now a hacker can break
in !!!!!!!!!!!!

Then call the ActiveX DLL via a VBScript (with CreateObject Statement)
in your Webpage. Or in case of the OCX put in in your WebPage.

Maybe there is a soloution with Windows Server Script instead using the
ActiveX, I don't know excatly.

Hope that helps......


Steven Brooks said:
Hi guys,

A have an ASPX page (a main menu) and from it I need to launch existing
exes on the local PC that has invoked the page from IE. I'm thinking that I
would have to do this via JavaScript but I can't find how to start another
process searching numerous sites. I know .NET has the Process object, can I
use this to launch a process on the client side? If so how to I tell .NET
that I want the process launched n the client side rather than the server
side. I'm pretty new to .NET some some sample code would REALLY help!!!
Thanks in advance, Steve.
 
C

Cor

Hi Armin (Z),
I think microsoft.public.dotnet.framework.aspnet is the right group for this
question, because you want to execute code on the client, and this can not
be done using VB.NET because the client does not receive VB.NET code.

It is not important, but I think that it is with the methods from
dotnet.framework.aspnet more or less the same (this can be done from
VB.net, but than should have been all the things that the other Armin (Ford)
did give as answers be fullfilled and it was only a simple statement from 2
lines).

I think that answer from Armin (ford) was the right one, although I thought
that Fergus has a method.

But I am not so sure if that was not also with an ActiveX and even if I know
it I would not want to give it, because of the security problems Armin
(ford) said.

Cor
 
G

Guest

Thanks, this is the guidance that I was looking for. Our install base is a known set of users so we can preinstall software on their PCs. I'll go with the approach of generating a COM DLL and install it on the client's PCs. Thanks VERY much for the advice!!!
 

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