Discussion:
Access Remote Desktop Using Code
(too old to reply)
Raja
2005-01-12 10:35:02 UTC
Permalink
Hi,
In one of our projects, we have the source code maintained at 2 different
places. Daily sync of the code is a time cosuming process. We are thinking of
writing a tool that can bring us the changed files from the onsite machine.
For this we plan to use the functionality provided by Terminal Services.
Since we want to automate this process, we want to access the onsite m/c
through code.

I am pretty new to this and it would really help if any pointers are given
on how to write code to connect to the remote m/c using the terminal services
objects. Any pointers to good articles or samples would also help.

Thanks in Advance
Raja
Jetro CockpIT
2005-01-12 14:25:02 UTC
Permalink
Hi,
What you need is to write a simple server code, which copies the files to
the client machine. The best way is to put it into the login script of a
special user. The scheduler on the client machine will launch mstsc.exe with
the adequate .rdp file, which will log the user in, perform the required
operation and then exit.
Everything can be done using batch. The simple solution is usually the best.

Jetro CockpIT
Fulfilling the promise of server-based computing
http://www.jp-inc.com
Post by Raja
Hi,
In one of our projects, we have the source code maintained at 2 different
places. Daily sync of the code is a time cosuming process. We are thinking of
writing a tool that can bring us the changed files from the onsite machine.
For this we plan to use the functionality provided by Terminal Services.
Since we want to automate this process, we want to access the onsite m/c
through code.
I am pretty new to this and it would really help if any pointers are given
on how to write code to connect to the remote m/c using the terminal services
objects. Any pointers to good articles or samples would also help.
Thanks in Advance
Raja
Loading...