Solved

copying files over sockets

Posted on 2004-08-08
7
171 Views
Last Modified: 2010-04-23
hi i have a vb.net program that i want to update files when a new one is available

what i have is a server program with the new .exe file on it and a client program on another computer.

i want to use sockets to transfer the data.

i can already send plain text and that works fine but when i come to transfer a file i cannot get it to work

i need to break the file down then send it bit by bit to the other computer

does anyone have any idea how to do this

thanks
0
Comment
Question by:cwi2k
[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
  • 3
  • 2
7 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11747118
I'm curious why you want to do this yourself when there are many great forms of file transfer around already HTTP/FTP as an example

0
 

Author Comment

by:cwi2k
ID: 11748350
hi the reason is that i have an application that detects when it needs an update (this bit works) and then runs a seperate update program which then copies the file needed from a remote pc via the internet which makes it automatic, and easy to distribute over many pcs quickly

thanks for the reply
0
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 125 total points
ID: 11748438
I would take a look at this

http://msdn.microsoft.com/library/en-us/dnbda/html/updater.asp

http://weblogs.asp.net/duncanma/articles/10221.aspx

MS has packaged this functionality into an application block (pretty much just include the .dll and you are ready to go)

I'm not saying that this is superior to your method but it is completed and very well tested.
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 4

Assisted Solution

by:y1381
y1381 earned 125 total points
ID: 11775926
Though I would highly recommend the above option but if you constraints persist you to use FTP .. you can use this class to program FTP transfer in VB

http://www.freevbcode.com/ShowCode.asp?ID=4655

hth

--yatharth
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11776823
you can use ftp transfers with the updater block ... you just have to build in the downloader part ...
0
 

Author Comment

by:cwi2k
ID: 12113618
hi

i used ftp to download the files

cheers
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

728 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