jeex
Joined: 25 Jan 2005 Posts: 23 Location: Netherlands
|
Posted: Thu Aug 11, 2005 10:50 am Post subject: Retrieve data via document |
|
|
Hello,
I use a 'hand and feet' method, partially based on a script in the AHK-help.
| Code: | FTPCommandFile = %A_ScriptDir%\FTPCommands.txt
FTPLogFile = %A_ScriptDir%\FTPLog.txt
FileDelete %FTPCommandFile% ; In case previous run was terminated prematurely.
domain =
username =
password =
path_to_document = ; start path with /
FileAppend,
(
open %domain%
%username%
%password%
binary
get %path_to_document%
delete %path_to_document%
quit
), %FTPCommandFile%
RunWait %comspec% /c ftp.exe -s:"%FTPCommandFile%" >"%FTPLogFile%"
; Run %FTPLogFile% ; Display the log for review. |
with this script get a file from the server by ftp. That file can on the pc be read with AHK file-commands. The delete-command deletes the file after the GET-command.
You could use a php- or Javascript in the website to make the document on the server.
You must off course make sure this script is an executable with a loooong encryptionkey so that your password cannot be read.
Off course I allso would like to hear e better method than this one...
gr VP _________________ ------------------------------------------------------------------------------------------
"Make it idiot-proof, and someone will make a better idiot." |
|