http://topic.eeworld.net/u/20091202/09/1cdab972-9c94-4f5a-969d-129b6bd6de8f.html
这样 30个设备 可以自动从网上下载到最新版本 ,不用 每次都去部署一次。
自己解决的怎么给分啊 ,呵呵
用 URLDownloadToFile 也可以实现从 指定的URL 下载文件到本地
Stock Implementation urlmon.dll
Custom Implementation No
Header Urlmon.h
Import library Urlmon.lib
Minimum availability Internet Explorer 3.0
Minimum operating systems Windows NT 4.0, Windows 95
Unicode Implemented as ANSI and Unicode versions.
好像 WinCE上不可以啊
System.Net.WebRequest request = WebRequest.Create("http://www.www.www/WEBSERVICES/xxxx3000.exe");
request.Credentials = CredentialCache.DefaultCredentials;
System.Net.HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream dataStream = response.GetResponseStream();
FileStream writeStream = new FileStream("\\"+"Program Files"+"\\"+"xxxxx系统"+"\\"+"xxx.exe", FileMode.Create, FileAccess.Write);
ReadWriteStream(dataStream, writeStream);
writeStream.Close();
dataStream.Close();
response.Close();
MessageBox.Show("Program been Upgraded!");
楼主赶紧结贴得了,干嘛上来一次还不结贴,要多少人回复才结贴?