本文整理自网络,侵删。
varstr:string;path:string;fpath:string;begin path:= '"'+Application.ExeName+'"'+' ' ; edit1.Text:= path; str:= getcommandline ; fpath:= StringReplace ( str, path, '', []) ; fpath:= StringReplace ( fpath, '"', '', [rfReplaceAll]) ; Memo1.Text:=str; Memo2.Text:=fpath;
或者
if ParamCount >= 1 then begin Memo2.Text:= ParamStr(1) end;
本文链接:https://blog.csdn.net/ozhy111/article/details/82386053
相关阅读 >>
Delphi中使用ixmlhttprequest如何用post方式提交带参
Delphi 测试字符串读取类: tstringreader
更多相关阅读请进入《Delphi》频道 >>