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"
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"