Search function in WinSCP script

Advertisement

Luca
Joined:
Posts:
1
Location:
Germany

Search function in WinSCP script

Hi all,

at the moment I am creating a script where WinSCP is opening and searching for specific file types on a CNC-Machine via FTP (*.prt). The problem on this case is, the .prt files are always located in different folders and also the folders change (different names, etc.). So this is my current script:
#Connect
open ftp://XX:XX@10.3.190.3
 
#Getting
get *.txt -delete
 
#Closing
close
This works fine, but the get command only looks for *.prt files in the root area and not in the folders that are located here. I also cannot define any folders and as they change multiple times daily.

Reply with quote

Advertisement

Guest

So basicly I tried it with filemask, but filemask copy the whole folder structure and not the single files to my destination

Reply with quote

Advertisement

You can post new topics in this forum