社区
Delphi
帖子详情
用UrlDownloadToFile(nil, PChar(SourceFile), PChar(DestFile), 0, nil)下载软件的问题!
netchannel
2005-11-16 12:14:16
用UrlDownloadToFile(nil, PChar(SourceFile), PChar(DestFile), 0, nil)下载软件,如果SourceFile是一个类似http://www.sohu.com/download.asp?id=1的链接,造成不知道DestFile应该起个什么名字,有什么好方法解决?
...全文
106
3
打赏
收藏
用UrlDownloadToFile(nil, PChar(SourceFile), PChar(DestFile), 0, nil)下载软件的问题!
用UrlDownloadToFile(nil, PChar(SourceFile), PChar(DestFile), 0, nil)下载软件,如果SourceFile是一个类似http://www.sohu.com/download.asp?id=1的链接,造成不知道DestFile应该起个什么名字,有什么好方法解决?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
netchannel
2005-11-17
打赏
举报
回复
up
netchannel
2005-11-16
打赏
举报
回复
因为所下载的文件类型不一样,需要按照服务器上的源文件类型给新文件命名!
netchannel
2005-11-16
打赏
举报
回复
救命啊
Delphi实现文件
下载
Url
Downloa
dTo
File
Result :=
Url
Downloa
dTo
File
(
nil
,
PC
har
(
Source
File
),
PC
har
(
Des
t
File
), 0,
nil
) = 0; except Result := False; end; 这个函数如果在缓存目录中有文件的话,就不会从新
下载
网络上的文件.解决得办法是使用api函数...
delphi 带进程条的文件
下载
代码如下: Code 1uses
URL
Mon,ShellApi 2function
Downloa
d
File
(
Source
File
,
Des
t
File
:string):Boolean; 3begin 4try ...5Result:=
Url
Downloa
dTo
File
(
nil
,
PC
har
(
Source
File
),
PC
har
(
Des
tFil...
实现文件
下载
,只需要加入到线程就可以了
uses
Url
Mon; function
Downloa
d
File
(
Source
,
Des
t: string): Boolean; begin try Result :=
Url
Downloa
dTo
File
(
nil
,
PC
har
(
source
),
PC
har
(
Des
t), 0,
nil
) = 0; except Result := False;
Delphi中的一个文件
下载
函数
function
Downloa
d
File
(
Source
,
Des
t: string): Boolean; begin try Result :=
Url
Downloa
dTo
File
(
nil
,
PC
har
(
source
),
PC
har
(
Des
t), 0,
nil
) = 0; except Result := False; end;end; ...
delphi程序中
下载
文件的
问题
使用Delphi编写
下载
文件程序时,一开始还觉得很顺利,使用
URL
Downloa
d很方便function
Downloa
d
File
1(
Source
File
,
Des
t
File
: string): Boolean;begin try CoInitialize(
nil
); //这个是发现
问题
后加上去的 Result ...
Delphi
5,930
社区成员
262,943
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章