djw
unread,May 11, 2009, 1:14:57 PM5/11/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Microsoft Terminal Services ,Go Thin!
I would like to setup a remote desktop connection using vba on a
client machine from which I would need to execute a few command such
as opening a program etc. on the server.
I have some limited VBA experience but I have no Idea on how to get
this to work correctly
I referenced in the mstscax.dll and can see that the MSTSCLib object
has a server and connect method. If I do something such as
Dim X As MsRdpClient
Set X = New MsRdpClient
X.Server = ip_address
X.Connect
Nothing happens. Also, how would I start a program once connected,
could I use the OnConnected event? Is there anyway to send a file to
the remote system, or send a paste command to the opened program?
I couldn't even get SendKeys with an existing Remote Desktop Session
to work.
Thanks,
David