Click here to Skip to main content
15,917,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on asp.net. i am accessing one exe through web on button click, which running through visual studio it is able to connect this exe. but after created setup of this website i am not able to see this window, which i connected exe.
how to salve this type of problem.

this is my code-

C#
strIPAddress = CryptographyHelper.Md5Decrypt(serverInfo.IPAddress);
strUserName = CryptographyHelper.Md5Decrypt(serverInfo.SSHUserName);
strPassword = CryptographyHelper.Md5Decrypt(serverInfo.SSHPassword);
//System.Diagnostics.Process process = new System.Diagnostics.Process();
//System.Diagnostics.ProcessStartInfo startinfo = new System.Diagnostics.ProcessStartInfo("cmd.exe ",@" \k SampleRDC.exe " + strIPAddress + " " + strUserName + " " + strPassword);
//startinfo.WorkingDirectory = @"D:\RND\BSE\RemoteDsk\SampleRDC\bin\Debug";
//process.StartInfo = startinfo;
//process.Start();
 
System.Diagnostics.Process p = new System.Diagnostics.Process();
// p.StartInfo.FileName = @"C:\Opscentral\MRDC\RDC.exe";
p.StartInfo.FileName = @"C:\Opscentral\MRDC\RDC.exe";
p.StartInfo.Arguments = strIPAddress + " " + strUserName + " " + strPassword;
p.Start();
Posted
Updated 23-Dec-14 2:03am
v2
Comments
Praveen Kumar Upadhyay 23-Dec-14 8:06am    
What is the issue you are getting??
KaushalJB 23-Dec-14 8:45am    
"not able to see this window" .. Which window ?? The button click window ?
Member 9528908 24-Dec-14 1:37am    
any exe which we can give path in code
like p.StartInfo.FileName = @"C:\Opscentral\MRDC\RDC.exe"

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