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


OK. So far it works already. Thank you for this!!
@echo off
"C:\Program Files (x86)\WinSCP\" ^
  /log="C:\nodered_Daten\log\WinSCP.log" /ini=nul ^
  /command ^
    "open -rawsettings ProxyPort=0" ^
    "lcd C:\nodered_Daten\SM03" ^
    "cd /" ^
    "put -filemask=<33N *" ^
if %WINSCP_RESULT% equ 0 (
  echo Success
) else (
  echo Error

Would there be a possibility to move the sent files to the local computer ? \Backup\* or something like that?
Or another way out, delete the files after sending? (but is less desired!)
The problem is: On the other side runs a program that enters the files into a database and then deletes them. I then move the old plus a few new to the server and he processes them again (which is actually no problem) but the files there then more and more and I can only 200)!

Transfer all files older than 33 minutes via FTP

I want to check a local directory and transfer all files older than 33 minutes via FTP to another computer. Possibly the transferred files should be moved to a local directory "backup" (optional). However, I have 0 experience how to create such a script. Is there someone who can create such a script for me ? I tried with the code generator but it does not help here.... :-(

I am grateful for any help !
Greetings Olli