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'
 
顶部