Post a reply

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)


Topic review


Re: script DOS >> put -delete and filemask dont work need help!

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

script DOS >> put -delete and filemask dont work need help!

I made a script DOS to send files, but I just want to send the files with filemask, but I'm sending all the files and subfolders, then delete all fron sorce c:\FTP\transfer including folder "transfer".
what's wrong?

set dir_ftp=/partner/
set transfer=c:\FTP\transfer
set logs=c:\FTP\logs
%dirwinscp%\ /log=%logs%\env_%ano_sistema%%mes_sistema%%dia_sistema%_%hora_sistema%%minuto_sistema%.log /command ^
"open ftp://user:pass@" ^
"put -delete ""%transfer%"" -filemask=GP2_006_* ""%dir_ftp%""" ^