File Transfers

G

Guest

I need to transfer a file from a central computer(Windows XP) to multiple 'branch' computers(WindowsNT/Windows2000) on a weekly basis. This transfer should be done programmatically in C#, when a user clicks a button or a menu item. After the transfer, we need to run a Script/batch file on each client computers. The problem is none of these computers are connected to the internet, but they have modems and can connect to telephone lines.

We could do this manually using Hyper Terminal, but we want to program this in C#. We prefer a solution that doesn't make use of internet. Solutions using Hyper Termial APIs too are welcome.The solution we are looking at is something similar to what Hyper Terminal performs - Far away computers connected via Telephone lines. We cant use cables

Thanks for your help
 
N

Nicholas Paldino [.NET/C# MVP]

SI,

If there are API functions that expose the Hyper Terminal API, then you
can access those in .NET. Other than that, you will be severly limited in
what you can do, as most of the remoting functionality assumes some sort of
network.

Because of this, you will have to write two separate apps, one for the
branch computers, and one for the central one. The branch computers will be
in a wait state, and when the central computer calls, it needs to accept and
make a connection. You would have to format the messages yourself, and
process them when you receive them on the other side. Then, based on the
contents of your message, you perform an action.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

SI said:
I need to transfer a file from a central computer(Windows XP) to multiple
'branch' computers(WindowsNT/Windows2000) on a weekly basis. This transfer
should be done programmatically in C#, when a user clicks a button or a menu
item. After the transfer, we need to run a Script/batch file on each client
computers. The problem is none of these computers are connected to the
internet, but they have modems and can connect to telephone lines.
We could do this manually using Hyper Terminal, but we want to program
this in C#. We prefer a solution that doesn't make use of internet.
Solutions using Hyper Termial APIs too are welcome.The solution we are
looking at is something similar to what Hyper Terminal performs - Far away
computers connected via Telephone lines. We cant use cables
 
M

Michael Bray

Because of this, you will have to write two separate apps, one for
the
branch computers, and one for the central one. The branch computers
will be in a wait state, and when the central computer calls, it needs
to accept and make a connection. You would have to format the
messages yourself, and process them when you receive them on the other
side. Then, based on the contents of your message, you perform an
action.

It sounds like he might also need some Serial Port APIs, such as the one
here:

http://msdn.microsoft.com/msdnmag/issues/02/10/NETSerialComm/

-mbray
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

What about RAS?

You could establish a RAS connection to the remote XP machine and then use
a TCP/IP connection to transfer the file , under this configuration you have
to program only the client as the server only needs to have the RAS service
turned on.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Nicholas Paldino said:
SI,

If there are API functions that expose the Hyper Terminal API, then you
can access those in .NET. Other than that, you will be severly limited in
what you can do, as most of the remoting functionality assumes some sort of
network.

Because of this, you will have to write two separate apps, one for the
branch computers, and one for the central one. The branch computers will be
in a wait state, and when the central computer calls, it needs to accept and
make a connection. You would have to format the messages yourself, and
process them when you receive them on the other side. Then, based on the
contents of your message, you perform an action.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

SI said:
I need to transfer a file from a central computer(Windows XP) to
multiple
'branch' computers(WindowsNT/Windows2000) on a weekly basis. This transfer
should be done programmatically in C#, when a user clicks a button or a menu
item. After the transfer, we need to run a Script/batch file on each client
computers. The problem is none of these computers are connected to the
internet, but they have modems and can connect to telephone lines.
We could do this manually using Hyper Terminal, but we want to program
this in C#. We prefer a solution that doesn't make use of internet.
Solutions using Hyper Termial APIs too are welcome.The solution we are
looking at is something similar to what Hyper Terminal performs - Far away
computers connected via Telephone lines. We cant use cables
Thanks for your help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top