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

martin

Re: Batch File for Transfering different file types to different folders

I'm not sure if this is a question. And if it is, what the question is.
Gerri3d

Batch File for Transfering different file types to different folders

Hi,
I want to use a bacth command to transfer in example *ini, *.com etc files from different source folders to several target folders.
That means I need to select the source directories, file types and target directoris. I found this in the www:
"C:\Program Files (x86)\WinSCP\WinSCP.exe" 

/log=c:\path\winscp.log
/command "open sftp://manufact:Sr@xxx.yyy.214.1/"
"put %sourcepath%/*.com %targetpath%/proj/"
"put %sourcepath%/*.ini %targetpath%/cfg/"
"put %sourcepath%/*.txt %targetpath%/lan/"
"exit"


%sourcepath% and %targetpath% are batch variables

BR
Gerri3d