INNO SETUP 获得命令行参数
生活随笔
收集整理的這篇文章主要介紹了
INNO SETUP 获得命令行参数
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
INNO SETUP 獲得命令行參數
function?GetMyParam(PName:String):String;
var
??CmdLine?:?String;
??CmdLineLen?:?Integer;
??i?:?Integer;
begin
????CmdLineLen:=ParamCount();
????for?i:=0?to?CmdLineLen?do
????begin
????CmdLine:=ParamStr(i);
????if?CmdLine=?PName?then
??????begin
??????????CmdLine:=ParamStr(i+1);
??????????Result?:=?CmdLine;
??????????Exit;
??????end;
????end;
end;
原文 http://www.cnblogs.com/ahuo/archive/2009/07/30/1534998.html
?
[Code]function?GetMyParam(PName:String):String;
var
??CmdLine?:?String;
??CmdLineLen?:?Integer;
??i?:?Integer;
begin
????CmdLineLen:=ParamCount();
????for?i:=0?to?CmdLineLen?do
????begin
????CmdLine:=ParamStr(i);
????if?CmdLine=?PName?then
??????begin
??????????CmdLine:=ParamStr(i+1);
??????????Result?:=?CmdLine;
??????????Exit;
??????end;
????end;
end;
?
posted on 2013-08-02 21:32 NET未來之路 閱讀(...) 評論(...) 編輯 收藏轉載于:https://www.cnblogs.com/lonelyxmas/p/3233547.html
總結
以上是生活随笔為你收集整理的INNO SETUP 获得命令行参数的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 电信机顶盒多少钱啊?
- 下一篇: IT阅读——关于“业务”