trying to pass file name from aspx page to console.exe
Posted
by ryder1211212
on Stack Overflow
See other posts from Stack Overflow
or by ryder1211212
Published on 2010-03-16T00:14:51Z
Indexed on
2010/03/16
0:19 UTC
Read the original article
Hit count: 606
i want to pass the value of a lable or textbox in an aspx page to a console.exe application such that the if the value is sample.doc it changes to that.
i am calling from the aspx page with
string f = TextBox1.Text;
System.Diagnostics.Process.Start("C:/DocUpload/ConsoleApplication1.exe", f);
i have tried converting to string then using the string vatiable inplace of sample.doc but no luck
object FileName = System.IO.Path.Combine(ExecutableFileInfo.DirectoryName, "sample.doc");
any help or ideas will be welcomed. thank u
© Stack Overflow or respective owner