ahk自动上传文件的脚本实例

来源:互联网 发布:ios淘宝hd历史版本 编辑:程序博客网 时间:2024/06/05 03:46
; 下面的例子演示了如何使用操作系统内置的 FTP 功能; 自动进行 FTP 上传. 此脚本已经在 Windows XP 中测试通过.FTPCommandFile = %A_ScriptDir%\FTPCommands.txtFTPLogFile = %A_ScriptDir%\FTPLog.txtFileDelete %FTPCommandFile%  ; 避免之前运行意外中止带来的问题.FileAppend,  ; 这里需要逗号.(open host.domain.comusernamepasswordbinarycd htdocsput %VarContainingNameOfTargetFile%delete SomeOtherFile.htmrename OldFileName.htm NewFileName.htmls -lquit), %FTPCommandFile%RunWait %comspec% /c ftp.exe -s:"%FTPCommandFile%" >"%FTPLogFile%"FileDelete %FTPCommandFile%  ; 删除以避免安全问题.Run %FTPLogFile%  ; 显示日志进行复查.
0 0
原创粉丝点击