Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

This is my first post,

On click of asp.net button, i want to run .exe in client pc, the problem is i dont know where that .exe file is instaled in client pc, but it will be installed in c:program files or D:program files, some thing like i wont to open open notepad in client pc on click of asp.net button, I have tried this but it is not at all working nor giving error

 

Dim p As System.Diagnostics.Process

p = System.Diagnostics.Process.Start("notepad")

p.WaitForExit()

 

Thx in advance

  • Administrators
Posted

You are trying to launch the application on the server - and if you check task manager you will see notepad gets loaded into the server's process list. However as it is launched from the ASPNET service it will not have access to the desktop.

You cannot use server-side asp.net code to launch a client process that way.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted
use client side scripting (JavaScipt, VBScript) if there is a client side scripting object that would do that... I'm not familiar with one, but there may be one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...