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

Not outside the winSCP script, but in it. When the script fires off it connects to a site, changes folders and downloads all thats in the folder. What I want it to do is look before it downloads. I think that is inside the script.
martin

Re: SFTP logic File Already Exists

If I understand it correctly, you are missing the part to check for existence of the a local file to trigger the WinSCP script.
Such task is out of scope of this forum. Please ask elsewhere, for example on https://superuser.com/
Cecil Xavier

SFTP logic File Already Exists

Good day all,
I'm a novice user so I appologize in advance. I am trying to write a script that will check one windows directory for a file name (example u0731130.dat) before it tries to download a file (example ub04073113.dat) to a different windows directory. It will run through all the files in a specific directory and then quit.
I have been able to make a script that that connects, browses to the folder on the ftp server and download anything in there to the windows directory that I am currently in when I run winSCP. But, that is it. Any help would be greatly appreciated.