| | |
How to Download a file or .exe in C# programming
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2008
Posts: 1,160
Reputation:
Solved Threads: 137
I don't know what your method of calling the server is, or if it is local or remote. You might want to try a web service if you can't access the file publicly. If its public it can just be a url. In the C# code, you can reference a file as a byte array( byte[]). If you need further clarification, please supply a little bit more detail.
•
•
Join Date: Aug 2008
Posts: 11
Reputation:
Solved Threads: 0
I am developing a desktop application that will check the server for updates and if found will download the update. The update has to be in exe form since it will contain its own logic. I wan to know if there is a built in control in .NET or any window functionality that I might use to download an exe. once downloaded the exe will execute and update my system.
Note: The system is already able to check for updates on the server ( there is a webservice already running on the server ).
Note: The system is already able to check for updates on the server ( there is a webservice already running on the server ).
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
As I said, the above will as long as you know what the URL will be.. wether its http://mysite.com/download.asp or what..as long as you know how to get the URL and how to test if theres a newer exe - either by praying the server displays correct headers or in your case maybe a version.txt file, the principle is the same. Have a look at those 2 objects and work from there.
![]() |
Similar Threads
- Send data on a serial port (C++)
- Programming FAQ - Updated 1/March/2005 (Computer Science)
- Vista programming in C++? (Windows Vista and Windows 7)
- Another explorer.exe thread. (Viruses, Spyware and other Nasties)
- free php/mysql programming (Web Development Job Offers)
- Freeprodtb!! (Viruses, Spyware and other Nasties)
- GET! GOT! GOTCHA! I still don't Get it... (C++)
- About;Blank Please Help, Hijack Log File (Viruses, Spyware and other Nasties)
- I can't remove about:blank (Viruses, Spyware and other Nasties)
- Another Trojan.Bookmarker.Gen (Viruses, Spyware and other Nasties)
Other Threads in the C# Forum
- Previous Thread: Help me with ideas
- Next Thread: how to trap the values of a particular row in datagridview
| Thread Tools | Search this Thread |
.net access algorithm array asp.net barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom database databaseconnection datagrid datagridview dataset datetime dbconnection degrees design development draganddrop drawing encryption enum event eventhandlers excel file firefox form format forms function gdi+ grantorrevokepermissionthroughc#.net httpwebrequest image index input install java label libraries list listbox loop mandelbrot marshalbyrefobject math mouseclick movingimage mysql mysql.data.client operator path photoshop php picturebox pixelinversion post programming radians regex remoting resourcefile richtextbox server sleep socket sql statistics stream string study system.servicemodel table tcpclientchannel text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf wpfc# xml






