Solved

copying files over sockets

Posted on 2004-08-08
7
167 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
  • 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now