-1

I have this piece of my code to get all .mdb files:

echo option batch abort
echo option confirm off
echo open sftp://%USERNAME%:%PASSWORD%@%SERVER_ADDRESS% -hostkey="*"
echo lcd %LOCAL_DIRECTORY%
echo cd %REMOTE_DIRECTORY%
echo get -preservetime -filemask=*.mdb 
echo exit

I want to improve it, to only retrieve .mdb files modified within the last 24 hours.

Compo
  • 36,585
  • 5
  • 27
  • 39
  • "i want to improve it" — Questions asking how to "improve" code need to be *really* specific about what type of improvement they are seeking to avoid being too unfocused and/or too subjective (i.e. likely to be answered with opinions instead of facts) to be suitable for SO. – Quentin Aug 29 '23 at 10:28
  • You should also read the formatting instructions near the question editor to make your code readable. – Quentin Aug 29 '23 at 10:28
  • We are not here to change what your code does. We are here to help you to fix a problem with the code you have written to attempt the task already. – Compo Aug 29 '23 at 10:48

0 Answers0