Topic "Copingthe file to a single folder with a random name"

Author Message
barabanozver

Guest


Hi there,

How can I name a "single folder with a random name" in the script to copy files to it?

An example of this script:

option batch on
option confirm off

# open sftp connection
open sftp://udbstorage:mypass@myserv

# synchronize files from server
put F:\In_Work\Workspase1\forThumbnails\1190938BO /home/app/storage/CNEB1190938BO/%random%/flipbook/images

pause
exit


The folder there is necessarily the only one, but its name can be anything.


Tnx!
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26706
Location: Prague, Czechia
Did you try to google your question?
First two hits:
https://stackoverflow.com/q/25045985/850848
https://superuser.com/q/349474/213663
Advertisements

You can post new topics in this forum

Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License