AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 How to attach vb exe in asp.net
Posted by Miss .Supriya Sunil Kulkarni on  7/14/2012 7:52:55 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend
When click on Asp.net button i want to open my VB Exe file in My compurt c :
How to write that code for call tat vb exe

Post Your Reply Post New Question

 Viewer's Reply
Call an EXE From Asp.Net Application in Button Click: ProcessStartInfo Class
Answered By Moderator1 on 9/11/2012 9:21:21 AM
Hi,

Below is the source code to start the exe from an asp.net web application. But you must have a full-trust permission for your application.

The sample code is

using System;
using System.Diagnostics;
using System.ComponentModel;

ProcessStartInfo info = new processStartInfo(@"c:\winapp.exe");
info.UseShellExecute = false;
Process p = Process.Start(info);
p.start();

You can find more details on the below url:
http://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo%28v=vs.100%29.aspx
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
The Art & Science of JavaScript - Free 100 Page Preview!
SearchSAP
No Nonsense XML Web Development With PHP - Free 146 Page Preview!