Synchronize live progress
Hi,
would like to check if anyone knows how do i print the progress line by line for synchronization?
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.
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.