Re: Moification in Script
But as mentioned earlier, I am trying to Skip the newly appeared file to move during the session.
That's what the code does.
It moves only the files that were really transferred.
Read the code!
But as mentioned earlier, I am trying to Skip the newly appeared file to move during the session.
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.
rm 2406/*
%TIMESTAMP#yyyy-mm-dd
*.pdf
is the right mask.
mv *.pdf subfolder/*
open engr:engrngp@192.168.1.183
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
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.