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

Web88

the problem with prefixes I solved it.. by adding a filemask to put command..
"put -filemask="Temp_*;Cal_*;Vid_*" *.* -delete -nopreservetime" ^
Web88

Upload only files with a particular prefixes and move files after upload to another local folder ?

Hello,

I want to uplaod only files with a particular prefiexes eg. Temp_, Cal_, Vid_. . Now every files from upload folder will be uploaded to my server. And how can I move files after uploading to a local folder eg. backup ? Because now I am uploading all files.. and downlaoding files again to backup folder. But I want to move files after uploading was successfull. Is it possible ?
Thanks.

%~dp0\App\WinSCP\winscp.exe /ini=nul /log=%~dp0\Logs\log_%datetime%.txt /command ^
   "open sftp://%user%@server.net/ -hostkey=""ssh-rsa"" -privatekey="%pKey%"" ^
    "cd %Serverpath%" ^
    "lcd %~dp0\Upload" ^
     "put *.* -delete -nopreservetime" ^
    "lcd %~dp0\BackupFolder" ^
    "get *.* *_%datetime%.*" ^
    "close" ^
    "exit"