Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

davidh

Multiple File Selection Right Click Batch

I'm trying to create a batch file that uploads multiple selected files via a "Sendto" right click menu item.
set foo="%*"

WinSCP.com /command ^
   "option batch continue" ^
   "option confirm off" ^
   "open sftp://davidh@192.192.192.192/home/davidh/" ^
   "put %foo%"

The batch file processes the first file but subsequent files kick back an error code "unknown command" with the file name and path following. Is what I'm trying to do possible? Any help would be appreciated.