Hi! I'm a Rebol newbie! :blink:
I'm trying to write a script that will download a file from a FTP directory.
The problem is that I the filename changes every couple of days (virus signature file).
BUT, there is a textfile in the directory that can help me, maybe...
Now, this is my "script": :mellow:
-------------------------------------------------------------------------------------------------
filnamn: read/lines
ftp://ftpez.ca.com/pub/myeTrust/sigs/10.5/version.txtfilnamn: append "aup_" filnamn
append filnamn ".exe"
--------------------------------------------------------------------------------------------------
Maybe you can see what I'm trying to do?
I'm reading the file which tells me which is the latest version, e.g 1234.
The file I'm trying to download is named "aup_1234.exe"
Anyway I get so far that I have a variable which is a string containing the correct filename that I need to download.
How do I tell Rebol to download the file?
How can I now use the variable?
:blink:
I tried this: write/binary %filnamn read/binary
ftp://ftpez.ca.com/pub/myeTrust/sigs/10.5/%filnamn but that of course doesn't work for me...
If you know how to do this let me know, or if you know of a simpler way!
Thanks!