Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

theMezz

Multiple File types in Various Folders

I am trying to learn how to create a few scripts via trial and error, reading, testing, Etc.

The get command seems pretty logical for multiple file types. Nore that the open is working and the get I can works towards what I need to do.
get -delete   *.txt *.log *.doc

Now this is the hard part ... I need to download all the txt, log and doc files - but they exist in various folders. So I need the get to look in all sub folders. The sub folders change names daily as new ones are created. Then I need the leftover files as well as the folders deleted.

So ..

Today
folder1 has a few files some are *.log ... ok download then
folder2 has a few files some are *.txt ... ok download that
then delete folder 1 and 2

tomorrow
folder34 has a few files some are *.exe ... ok do not download those
folder62 has a few files some are *.doc ... ok download that
then delete folder 34 and 62

So the folder names and file names and types change daily ... but all I wat downloaded is that *.txt *.log *.doc files...

I know .. this must be easy if I knew how! :-)[/m]