dotnetspider.com
Login Login    Register      

TutorialsForumCareer DevelopmentResourcesReviewsJobsInterviewCommunitiesProjectsTraining

Subscribe to Subscribers
Talk to Webmaster
Tony John

Facebook
Google+
Twitter
LinkedIn
Online Membersbaskar
More...
Join our online Google+ community for Bloggers, Content Writers and Webmasters




Forums » .NET » ASP.NET »

run exe using asp.net


Posted Date: 18 Dec 2008      Posted By:: prasannakumar     Member Level: Gold    Member Rank: 0     Points: 1   Responses: 2



hi,
i have an exe in web server like temp.exe.now i want to run temp.exe in client from server using c#. how to do this?

my code like this

System.Diagnostics.Process lameProcess;
ProcessStartInfo psi = new ProcessStartInfo();
fileLocation = "http://localhost/socketclient/temp.exe";
psi.FileName = fileLocation;
psi.UseShellExecute = false;
psi.RedirectStandardError = true;
lameProcess = System.Diagnostics.Process.Start(psi);
lameProcess.Start();
Response.Write(lameProcess.StandardError.ReadToEnd());

but this code not working.......

Regards
K.Prasannakumar




Responses

#330560    Author: Deepika Haridas      Member Level: Gold      Member Rank: 7     Date: 18/Dec/2008   Rating: 2 out of 52 out of 5     Points: 0

Hi,

Instead of localhost try to give IP address..



Thanks & Regards,
Deepika - Sr. Editor
Webmaster, GujaratSpider
http://angeldeeps.blogspot.com/
"Experience is the name everyone gives to his mistakes"
GujaratSpider - Post and Earn



 
#330562    Author: Deepika Haridas      Member Level: Gold      Member Rank: 7     Date: 18/Dec/2008   Rating: 2 out of 52 out of 5     Points: 1

Hi,

Check this link. Might help you

http://dotnetslackers.com/Community/blogs/haissam/archive/2007/02/02/Run-Executable-file-in-ASP.NET.aspx



Thanks & Regards,
Deepika - Sr. Editor
Webmaster, GujaratSpider
http://angeldeeps.blogspot.com/
"Experience is the name everyone gives to his mistakes"
GujaratSpider - Post and Earn



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : export
Previous : gridview problem
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Email subscription
  • .NET Jobs
  • .NET Articles
  • .NET Forums
  • Articles Rss Feeds
    Forum Rss Feeds


    About Us    Contact Us    Copyright    Privacy Policy    Terms Of Use    Revenue Sharing sites   Advertise   Talk to Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2012 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.