Click here to Skip to main content
15,891,654 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using wkhtmltopdf to convert a web page to pdf. Right now I am using a scheduled task to execute the console application, but I would like to be able to run it on demand. Is there a way in .Net to run a console app through the web app. I don't need to interact with it, just initialize it.
Posted

1 solution

Try System.Diagnostics.Process.Start()

Read more here <a href="http://msdn.microsoft.com/en-us/library/e8zac0ca.aspx">http://msdn.microsoft.com/en-us/library/e8zac0ca.aspx</a>[<a href="http://msdn.microsoft.com/en-us/library/e8zac0ca.aspx" target="_blank" title="New Window">^</a>]


*Mark as answer if this solves your problem
 
Share this answer
 
v2
Comments
Nunnenkamp 27-Jan-12 15:23pm    
Definitely along the lines of what I'm looking for, however it appears that the Process Method only accepts an absolute path. The site is hosted on a virtual drive and I cannot seem to point to the right directory i.e. scorecard.domain.com/appdir/ or \\domainiis\Sites\Scorecard\appdir\.

Any suggestions?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900