$CmdLine[1]; ----- 带入的参数;
WinActivate("文件上传");
ControlSetText("文件上传","","Edit1",$CmdLine[1]);
sleep(2000)
ControlClick("文件上传","","Button1");
----现在命令行进行测试; 敲击回车 测试图片上传成功;
Process p=Runtime.getRuntime().exec("D:\up.exe"+" G:\wish\coat-1\des0.jpg"); --- 注意有空格;
.exec(string) 其实就是命令行输入的 字符串;