Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We produce a device that is used in the safety industry and i have written the utility software to change user settings. There is an option to update the internal firmware and i would like to know the best way to access our company website download section and check if there is a new version of the firmware

The file format will be similar to "Application Firmware VX_XX.hex"

I can download a specific file using
C#
WebClient myClient = new WebClient();
myClient.DownloadFile(strDownloadAddress, FileName);


But I would rather not loop through may possible files just to see if one exists.

I have tried some suggestions which are mainly the file system commands which dont seem to work on http.

I have no experience programming web apps/ services and Global IT have denied me access to the website to add services etc.
Posted

1 solution

This might not be a preferred solution, but this is something that I have always done to solve this issue.

Create a file on your server that contains the location of the update. For example you might have a text file on your server called 'update.txt' which contains only the text:

http://www.yourURL.com/Application Firmware VX_XX.hex

So each time the application checks for updates, all it needs to do is go and get the link in the update.txt file on your server, then download from that link if it needs to be updated.

Hope this helps!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900