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

Advertisement

thiagoaoshi
Joined:
Posts:
2
Location:
Brasil

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

Hi,
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?

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,567
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum