|
发表于 2010-2-5 16:11:47
|
显示全部楼层
Global $title="[CLASS:ConsoleWindowClass]"
Global $Username=""
Global $Password=""
Run("cmd.exe /c ftp **********","",@SW_MINIMIZE) ;最小化方式启动CMD,用FTP命令链接FTP
WinWait($title)
ControlSend($title,"","",$Username) ;输入用户名
ControlSend($title,"","","{enter}")
ControlSend($title,"","",$Password) ;输入密码
ControlSend($title,"","","{enter}")
ControlSend($title,"","","get pro.exe") ;输入命令,该命令是下载一个文件.发送文件是SEND命令
ControlSend($title,"","","{enter}")
ControlSend($title,"","","quit") ; 退出命令
ControlSend($title,"","","{enter}") |
|