I have a web interface that is to send some information to a C++ exe file. Just for testing purposes, I have only create a main (in the prog) which creates a txt file. Once I click the button, nothing seems to happen (no file created). I even tried to do a Hello World, but Nada...can anyone help because I am totaly lost
Code:
<html>
<head>
<title>testing</title>
</head>
<script language="C#">
using System.Diagnostics;
void StartExecuting_Click (Object sender, EventArgs e)
{
string strfilePath="C:\\ABC\\Interface\\Code\\Debug\\test.exe";
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(strfilePath);
psi.UseShellExecute = true;
psi.WorkingDirectory="C:\\ABC\\Interface\\Code\\Debug\\";
System.Diagnostics.Process p = System.Diagnostics.Process.Start(psi);
p.Start(psi);
}
</script>
<body>
Here...
<input type="submit" value="submit" onServerClick="StartExecuting_Click"/>
</body>
</html>