how is GetFileLIST supposed to work ?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
DigitalR
Newbie
Posts: 1
Joined: Mon Dec 15, 2003 8:56 am

how is GetFileLIST supposed to work ?

Post by DigitalR » Mon Dec 15, 2003 9:01 am

Hello,

This some basic question :oops: although i can't get it work


GetFileList>c:\temp\*.rar,filelist

i suppose all *.rar file names are printed into the file 'filelist'. Well nothing happens. I don't find such file in temp-dir or macroscheduler dir

thanks for your help

Lumumba

Post by Lumumba » Mon Dec 15, 2003 10:10 am

Guess there's the fault

GetFileList>c:\temp\*.rar,c:\temp\filelist.txt

User avatar
Captive
Macro Veteran
Posts: 213
Joined: Sun Oct 20, 2002 8:37 pm
Location: Colorado, USA

Post by Captive » Mon Dec 15, 2003 6:55 pm

GetFileList>c:\temp\*.rar,filelistCorrect so far. The param "fileslist" isn't for an output filename, but it's a variable name.

If you check out the GetFileList example in the help file, it says something like this:GetFileList>c:\temp\*.rar,filelist
Separate>filelist,;,file_names
MessageModal>Number of files found: %file_names_count%

Let>k=0
Repeat>k
Let>k=k+1
Let>currentfile=file_names_%k%
Message>File %k% of %file_names_count%%CRLF%%currentfile%
Until>k,file_names_countInstead of displaying the message, you could FTP the file, delete it, save it's filename to the last line of a text file, etc.

Guest

Post by Guest » Tue Dec 16, 2003 8:30 am

Thanks for replying :)

i discovered the world of variabels now....

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts