本文整理自网络,侵删。
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 10.3 开发app 在android手机上获取imei
idtcpclient和idtcpclient 主要属性和方法
Delphi winapi: getwindowtextlength - 获取窗口标题长度
Delphi idftp 错误:socket error 10054 �c connection reset by peer -连接被重置
更多相关阅读请进入《Delphi》频道 >>