Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
hi.
i have made a rdp application using c# in the reference of remote desktop using c#
in the application,activex control shows the screen of remote computer.i want the rdp connection running in the background,so i write the example code:
private MSTSCLib.MsTscAxNotSafeForScriptingClass rdp;
private void button1_Click(object sender, EventArgs e)
{
rdp6 = new MSTSCLib.MsTscAxNotSafeForScriptingClass();
rdp6.Server = "10.4.10.xxx";
rdp6.UserName = "user";
rdp6.IMsRdpClientNonScriptable_ClearTextPassword = "123";
rdp6.connect();
}
but some exeptions have occured.
the exception is :
BinaryPassword causes system.notImplemented exception.
BinarySalt causes system.notImplemented exception.

i want the rdp connection running in the backgroud and dont show the screen of remote computer.how can i do that?
Posted
Updated 7-May-15 22:46pm
v3

1 solution

I think you can't do that. Like RDP states it's a Remote Desktop protocol, to transfer desktop control via a network. To get SSH like behaviour just use an ssh server. There are several options for Windows too.
 
Share this answer
 
Comments
libin0410 19-May-15 21:18pm    
sorry,i have to use rdp to execute some commands on remote computer because rdp protocol is the demand. maybe using like ssh is not described right, i just want to utilize rdp to execute some commands on remote computer, do you have any ideas ?

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