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: Upload a file in different folder with the same name

I'm sorry, but I'm not sure I understand.
Do you have a script, in which you need to change the folder name each time?
What do you want? Do you want to specify the folder name a different way that does not require changing the script file?
See https://winscp.net/eng/docs/scripting#arguments
Or do you want WinSCP to somehow find the right name automatically? For that we need more details about the remote directory structure or conventions.
yanou12

Upload a file in different folder with the same name

Hi eveyrone,
I would like to upload a file in different folder with the same name (folderA) but at different place:
...data/user1/folderA

...data/user2/folderA
...data/user3/folderA

Currently my script work but I have to replace "userx" each time.
Is it a simple way to do that?