How to do "keepuptodate" with .NET assembly?

Advertisement

giaco777
Joined:
Posts:
1

How to do "keepuptodate" with .NET assembly?

Hi,

I am a newbie in WinSCP programming. Perhaps this is a stupid question, but:

how can I obtain the same functionality like the command "keepuptodate" when using the .NET assembly?

Kind Regards
Giaco777

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: How to do "keepuptodate" with .NET assembly?

There's no equivalent in the assembly.
_________________
Martin Prikryl

Reply with quote

ngmunfye
Joined:
Posts:
8

1 Question.

We can use this in C# .Net coding like this

winscp.StandardInput.WriteLine("option batch on");
winscp.StandardInput.WriteLine("option confirm off");
winscp.StandardInput.WriteLine("open AutoFTP1");
winscp.StandardInput.WriteLine("keepuptodate " + monitorPath + " " + fullPath + " -filemask=\"*.rle,*.res,*.log,*.tar|*.txt\" ");

Can we use above coding and combine Winscp .NET assembly to check folder exist in remote path or logfile and etc?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Yes, but you need to have two sessions opened for that.

Reply with quote

Advertisement

You can post new topics in this forum