SFTP logic File Already Exists

Advertisement

Cecil Xavier
Guest

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,468
Location:
Prague, Czechia

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/

Reply with quote

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.

Reply with quote

Advertisement

You can post new topics in this forum