Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to pipe data between Terminal Server session and TS client via RDP.

Posted on 2009-07-04
9
Medium Priority
?
966 Views
Last Modified: 2013-11-21
Do you know if it works?
And if so, how?
I am using VB6 just in case you may have some code.

0
Comment
Question by:DistributedServices
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
9 Comments
 
LVL 5

Expert Comment

by:rizwanidrees
ID: 24776300
Your question is not clear.
0
 

Author Comment

by:DistributedServices
ID: 24776316
What is not clear?

Pipe?
TS?

0
 
LVL 5

Expert Comment

by:rizwanidrees
ID: 24776322
Pipe? what kind of data you want to pipe between ts and client. SQL or file?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 5

Expert Comment

by:rizwanidrees
ID: 24776341
If you want to share Files, Printers, Clipboard with ts then simply click them while connecting to ts using rdp in local resources tab and also allow these options on ts in terminal service settings
0
 

Author Comment

by:DistributedServices
ID: 24776867
I am looking for ways letting two programs exchanging data.
One is running on my local Windows PC.
The other one is running within a TS session on a Windows 2003 Terminal Server.

When establishing the RDP connection I start the program on the server. So I can send some parameters too.
Later on I need to send and receive even more data. I could use the shared CLIPBOARD or let the server read and write files on my local client's HARD DISK.
Of cause both would work, but using the clip board is not very nice as the user can't use it any more and file system operation are not fast enough.

So I am looking for something more like a PIPE. But I have not idea if this might work.
0
 
LVL 5

Expert Comment

by:rizwanidrees
ID: 24776934
I don't know exactly which type of application you are developing.
However i have VB sample to make an application to connect to remote computer and get files, print screen of remote computer, but i am un-able to upload these file because this website doesn't accept file type *.bas, *.frm etc
0
 
LVL 5

Expert Comment

by:rizwanidrees
ID: 24776970
You can do it using winsock control
0
 

Author Comment

by:DistributedServices
ID: 24779267
Hello rizwanidrees,

your project sound to be quite like mine.

I have a html file which I load in IE, VB fills some input tags and presses a button to start a JavaScript which starts the RDP session.
As file and clipboard access are allowed, the session can access the drives of the client's machine. Using Ctrl-C / Ctrl-V the user can up- and download files.
I also start a program on the remote TS server to assist the user.
My local program and the remote one need to communicate. The local program sends orders and the remote program answers. Right now I am using the clipboard but that's not very nice because this restricts the user in working with the clipboard.
That's why I am looking for something different like a pipe between the two programs.
WinSock is quite an idea.

I have only managed to let the remote program access the local file system. Does your local RDP client has access to the RDP server's file system?

I look forward to hearing from you, rizwanidrees.
Maybe we could share some code.

Regards

Susan
Your may know this object to connect to a TS:
        <OBJECT language="vbscript" ID="MsRdpClient"
        onerror="OnControlLoadError"
        onreadystatechange="OnControlLoad"
        CLASSID="CLSID:7584c670-2274-4efb-b00b-d6aaba6d3850"
        CODEBASE="msrdp.cab#version=5,2,3790,0"
        WIDTH=<% resWidth = Request.QueryString("rW")
            if  resWidth < 200 or resWidth > 1600 then
               resWidth = 800
            end if
            Response.Write resWidth %>
        HEIGHT=<% resHeight = Request.QueryString("rH")
            if  resHeight < 200 or resHeight > 1200 then
               resHeight = 600
            end if
            Response.Write resHeight %>>
        </OBJECT>

Open in new window

0
 
LVL 5

Accepted Solution

by:
rizwanidrees earned 2000 total points
ID: 24779353
Yes, Download Sample (2 Zip Files) from following links and check if it can help you

http://rapidshare.com/files/252145838/Server.zip.html

http://rapidshare.com/files/252145840/Client.zip.html

0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
this article is a guided solution for most of the common server issues in server hardware tasks we are facing in our routine job works. the topics in the following article covered are, 1) dell hardware raidlevel (Perc) 2) adding HDD 3) how t…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question