Topic "how to determine whether a file exists in winSCP folder"

Author Message
mark.tony.alphonso

Guest


hi all, i have built a window service(using C# code) which processes all the files that have been uploaded in the winSCP folder before the files are deleted

now is there a way to check whether a file exist in the folder in winscp so that i dont delete new files that have been recently uploaded.



Rolling Eyes
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
mark.tony.alphonso wrote:
now is there a way to check whether a file exist in the folder in winscp so that i dont delete new files that have been recently uploaded.

So you want to check for an existence of a remote files?
_________________
Martin Prikryl
Guest




yup i want to check the existance of remote files

and also i am getting the error standardIN not redirected when i am debugging the service.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
There some example which should not be difficult to rewrite to C#:
https://winscp.net/eng/docs/script_checking_file_existence

Also the next version of WinSCP, coming out in few weeks, will including C# wrapper for WinSCP. It would make you task very simple.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License