ShellExecute第四个参数的问题(50)

L

lcb139

Unregistered / Unconfirmed
GUEST, unregistred user!
ShellExecute(handle,nil,'c:/putty.exe','-pw aaa -m c:/a/b b/中午/a.txt root@181.151.2.55',nil,SW_SHOWNORMAL);第四个参数中含有一个路径,如果路径中有中文或空格总是出错,如何处理啊
 
路径有空格用 "" 括起来
 
'-pw aaa -m "c:/a/b b/中午/a.txt" root@181.151.2.55'
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
736
DelphiTeacher的专栏
D
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
712
DelphiTeacher的专栏
D
D
回复
0
查看
682
DelphiTeacher的专栏
D
顶部