Delphi中有两个专门用于读取命令行参数的变量:
Paramcount-->用于返回命令行参数的个数
Paramstr数组-->用于返回指定的命令行参数
示例代码:
showmessage('命令行参数个数为:'+inttostr(paramcount));
showmessage('第1个命令行参数为:'+paramstr(1));
showmessage('应用程序名称为:'+paramstr(0));
相关文章:
-
2022-12-23
-
2022-12-23
-
2021-04-22
-
2021-11-01
-
2022-12-23
-
2022-12-23
-
2021-07-30
-
2022-12-23
猜你喜欢
-
2021-09-25
-
2021-12-07
-
2022-01-26
-
2021-08-26
-
2022-12-23
相关资源
-
下载
2021-06-05
-
下载
2021-06-23
-
下载
2021-06-05