Post a reply

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)


Topic review


Synchronize live progress


would like to check if anyone knows how do i print the progress line by line for synchronization?

exec = shell.Exec("\"" + WINSCP + "\"");
"option batch abort\n" +
"option confirm off\n" +
"open \"" + SESSION + "\"\n" +
"synchronize local \"" + LOCALPATH + "\" \"" + REMOTEPATH + "\"\n" +

// wait until it finishes and collect its output
var output = exec.StdOut.ReadAll();

// optionally print the output

As seen above, the code only prints the output when the script finishes running. I want to print the file synchronization line by line instead of the whole lump when script finishes running.