i am working on a project of SFTP.
In this I have to Download files from Multiple Folders of one Server.
But I don't know how to Script this.
The Structure of these Multiple folder And Switching from one to another is confusing.
Well, we do not know their structure. So unless you provide us more details and explain us, what is confusing, we can hardly help you.
mv *.pdf subfolder/*
open engr:firstname.lastname@example.org lcd d:\sftp cd m1/done get *.pdf mv *.pdf subfolder/* cd ../../m2/done get *.pdf mv *.pdf subfolder/* cd ../../m3/done get *.pdf mv *.pdf subfolder/* cd ../../m4/done get *.pdf mv *.pdf subfolder/* exit
This is difficult to do with a simple scripting.here I want to List the files which are available in that folder,
and after transfer it should move only listed files to Done folder.
That's what the code does.But as mentioned earlier, I am trying to Skip the newly appeared file to move during the session.
You can post new topics in this forum