forfile with winscp not working-Need to put folder of files
Want to put folder of files with variable names with winscp. Have a script for a single file but would like to do a forfiles or loop to send files.
I have the below which isn't working.
FORFILES /m *.csv /c "C:\"Program Files (x86)"\WinSCP\WinSCP.com /command "option confirm off" "option batch abort" "open "Transfer"" "put ""c:\Files\@file""" "exit""
I have the below which isn't working.
FORFILES /m *.csv /c "C:\"Program Files (x86)"\WinSCP\WinSCP.com /command "option confirm off" "option batch abort" "open "Transfer"" "put ""c:\Files\@file""" "exit""