Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 16-05-2009
Member
 
Join Date: Apr 2009
Posts: 47
Launch Local EXE files via a browser

I want to launch an executable file in its own process, via web request in web service.I have Windows XP operating system on my system. The problem is it gives me an error "The system cannot find the file specified."

Here is some code:

Code:
Process D = new Process(); 

D.StartInfo.CreateNoWindow = true;

D.StartInfo.UseShellExecute = false;
D.StartInfo.FileName = "Web.exe"; 

D.StartInfo.WorkingDirectory = @"c:\windows";

D.Start();
Reply With Quote
  #2  
Old 16-05-2009
Member
 
Join Date: May 2008
Posts: 2,008
Re: Launch Local EXE files via a browser

The executable file that you are trying to access is located on the shared network or it is located at web server. Before accessing that folder you have to configure a shared folder on the file server and give the access to Web server. Are you giving proper path if it on the web server, if it is on a network share, use the UNC address of the share.
Reply With Quote
  #3  
Old 16-05-2009
Member
 
Join Date: Jan 2009
Posts: 199
Re: Launch Local EXE files via a browser

To resolve this issue, clear the Start the following program at logon check box. To do this, follow these steps:Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers.Right-click the affected user, and then click Properties.Click the Environment tab.Click to clear the Start the following program at logon check box, and then click Ok.
Reply With Quote
  #4  
Old 16-05-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: Launch Local EXE files via a browser

I have a solution with basic web application with a button on it. The button click code is as follows:

Dim strTmp, strRun As String

strTmp = "\\name of the server\name of the folder\fileName.exe"

Shell(strTmp, AppWinStyle.NormalFocus)?
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Launch Local EXE files via a browser"
Thread Thread Starter Forum Replies Last Post
OS X Lion cannot share files over the local network $Iain$ Networking & Security 3 16-02-2012 11:17 AM
How to remove old BackItUp and burn Local Autobackup files Johar Windows Software 5 06-07-2011 02:02 PM
Need help to access my local files in Windows Explorer Shazid Windows Software 4 09-05-2011 07:47 AM
Creating Local Patch Files In The Git Software Rafaeel Windows Software 5 12-11-2010 11:35 PM
How to Call a local shared library from browser? Cadallic Software Development 3 23-09-2009 02:43 PM


All times are GMT +5.5. The time now is 07:53 PM.