Post a reply

Options
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)

Options

Topic review

Guest

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

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.