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

Siao

Synchronize live progress

Hi,

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

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

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

// optionally print the output
WScript.Echo(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.