PC Review


Reply
Thread Tools Rate Thread

Connect to a terminal server and run an application

 
 
Alex
Guest
Posts: n/a
 
      10th Apr 2004
Hi. Does anybody know if it is possible to connect to a terminal
server and run an application there? Specifically, I need to write a
C++ or C# code to connect to a terminal server and run something like
"xcopy source to destination" there. After the xcopy finishes I want
to close the connection.

Thank you.
 
Reply With Quote
 
 
 
 
news.microsoft.com
Guest
Posts: n/a
 
      10th Apr 2004
You can specify this on your client 'Start the following program on
connection' or on the terminal server by changing the user's shell to this
command.

--
Kind regards,

David Frans - MCSE CCEA
http://www.freelanceforum.be


 
Reply With Quote
 
Alex
Guest
Posts: n/a
 
      11th Apr 2004
Is it the only method? I guess that I can use IMsTscAx to do it. Am I
right? But anyway I don't understand how to wait until the application
finishes. Suppose the code will look like this

MsTscAxClass objRDC = new MsTscAxClass();
objRDC.Server = "Server";
objRDC.UserName = "User";
objRDC.ClearTextPassword = "password";
objRDC.SecuredSettings.StartProgram = "app.exe";
objRDC.Connect();

It doesn't work. Can you point me on where I'm wrong? How to extend
this code to wait until the application finishes?
Thank you.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot connect to a Terminal Server =?Utf-8?B?UGFyayBTaG93YWx0ZXI=?= Microsoft Windows 2000 Terminal Server Applications 2 28th Jun 2004 02:10 AM
Connect to a terminal server and run an application Alex Microsoft Windows 2000 Terminal Server Applications 1 10th Apr 2004 07:46 PM
cannot connect to terminal server brad Microsoft Windows 2000 Terminal Server Applications 0 1st Apr 2004 03:58 AM
Not able to connect terminal server vishwa Microsoft Windows 2000 Terminal Server Clients 3 21st Feb 2004 11:48 AM
Can't connect to Terminal Server Mark Winslow Microsoft Windows 2000 Terminal Server Clients 3 16th Jul 2003 01:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:07 AM.