Beginner needs help making simple script to copy via SFTP
Hello scripting experts! I'm new to scripting and found this excellent tool today. I've been asked to automate the copying of two files from an SFTP site. I read through the documentation but the syntax is throwing me off a bit. Here is what I have so far:
winscp.com /command "option batch abort" "option confirm off" "open securesite.net" "get examplefile.txt" "exit"
Close but not quite. I also need to pass credentials to authenticate then I need to make sure the files are copied to a specific directory. Could anyone fill in the blanks for me?
winscp.com /command "option batch abort" "option confirm off" "open securesite.net" "get examplefile.txt" "exit"
Close but not quite. I also need to pass credentials to authenticate then I need to make sure the files are copied to a specific directory. Could anyone fill in the blanks for me?