Filemask errror
Hello I am trying to write a automatic script to open a server and find all the file names that start with AAA within a folder(called "loading" that has over 100 subfolders that start from "load 1" to "load 100"). I am trying to use the filemask option to find these files and copy them to my local directory of C:\Users\Documents\filetransfer.
So far i have
"C:\Program Files (x86)\WinSCP\WinSCP.com" /command ^
"option batch abort" ^
"option confirm off" ^
"open sftp://Username:Password@server.com/" ^
"cd "/app/manager/loading/"" ^
"get -filemask=*AAA C:\Users\Documents\filetransfer\"^
"exit"
Does anybody know what is wrong with this or how do you get certain files from a folder with a lot of sub folders? I have read all the links of documents but still cant seem to figure it out.
Thanks for your time
So far i have
"C:\Program Files (x86)\WinSCP\WinSCP.com" /command ^
"option batch abort" ^
"option confirm off" ^
"open sftp://Username:Password@server.com/" ^
"cd "/app/manager/loading/"" ^
"get -filemask=*AAA C:\Users\Documents\filetransfer\"^
"exit"
Does anybody know what is wrong with this or how do you get certain files from a folder with a lot of sub folders? I have read all the links of documents but still cant seem to figure it out.
Thanks for your time