delphi 实现从下载链接提取文件名的函数


本文整理自网络,侵删。

 

//uses strutils;

 function ExtractUrlFileName(const Url: string): string;
var //www.delphitop.com
str:string;
begin
str:=reversestring(Url);
str:=copy(str,1,pos('/',str)-1);
str:=reversestring(str);
Result:=str;
end;

相反根据链接提取网址 http://www.delphitop.com/html/zifuchuan/1950.html

相关阅读 >>

Delphi 关于 beep、messagebeep 和 windows.beep

Delphi 公历到农历的转换法

Delphi批量删除同类文件(带通配符)

Delphi示例代码 android,ios,osx,windows,linux,html5

Delphi idhttp1 获取网页代码

Delphi自动以管理员身份在vista 和 windows7 下运行程序

Delphi 关闭进程方法

Delphi firedac 连接access mdb数据库的方法

Delphi中case语法的使用方法

Delphixe firemonkey 如何画图

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...