Brilliant that has worked 👍👍
Thanks so much for your help and patience.
Regards
Matt
Thanks so much for your help and patience.
Regards
Matt
get -delete "server/Work Files/*" "D:\Work Files\"
option batch abort
option confirm off
open sftp://username:password@serveraddress.com -hostkey="ssh-rsa 2048 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx username@serveraddress"
get -delete "server/Work Files" "D:\Work Files"
exit
Also, I'm usingsynchronize local
instead ofget
is that still not safe to do?
-delete
issue. For synchronize
the -delete
has very different meaning than for get
.
get
. You are not really "synchronizing" files.
Can you post a log file for that?
synchronize local
instead of get
is that still not safe to do?
Sorry for being vague about the notifications, I'm not good with scripting, it's a bit of a try this and hope it works situation. I was just thinking I could get a notification whether that's an email, prompt on my computer or something like that that can let me know all the files downloaded, similar to how Pushover works.
I'll be honest I will struggle to get this working with the documentation. I do have one script working from the YouTube video but that doesn't delete the files, is it possible to edit the script from the YouTube video to delete the files or does it need to be .NET?
-delete
switch. Again, as shown in the article I've already linked:
Anyway, is there a way for me to automate downloading of files which when completed they get deleted from the server
I then receive some form of notification to let me know what files have been downloaded?