Hi Joseph,
@JosDuchIt
Quote:
JosDuchIt wrote:
Hello i am trying to make a small arexx program?delivering me the content of a remote directory
I've been using ARexx to control AmiFTP for a while with
good results... I extracted a bit of code and this seems
to work printing out a files list:
/* test applet for AmiFTP
*/
/* address AmiFTP
*/
address 'AMIFTP'
/* Get file list
*/
GETATTR f FILELIST
/* check list and print out files
*/
lc = f.FileList.Count - 1
if ~(lc > 0) then do
say 'No files found'
exit
end
else do
do l=0 to lc
say ' ' || f.FileList.l.Name
say ' ' || f.FileList.l.Size
say ' ' || f.FileList.l.Type
end
end
Are you trying to set an Environment Variable
called ".AFld.Ttl" to the count of files? Maybe
the problem you're having is just getting the
contents of your Arexx variables out?
Instead of:
SetEnv '.AFld.Ttl' fi.FILELIST.COUNT
You might try putting your whole command line into
into a variable and then using that:
cline = 'SetEnv .AFld.Ttl " || fi.FILELIST.COUNT
(cline)
Good luck,
PJS