Upload a file in different folder with the same name

Advertisement

yanou12
Joined:
Posts:
1
Location:
France

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,263
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum