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

barabanozver

Copingthe file to a single folder with a random name

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!