Differences
This shows you the differences between the selected revisions of the page.
2009-09-12 | 2009-11-21 | ||
tabs to 4 spaces (martin) | fix waiting loops + wrong session variable case (martin) | ||
Line 76: | Line 76: | ||
// wait until the script finishes | // wait until the script finishes | ||
- | while (!exec.StdOut.AtEndOfStream) | + | while (exec.Status == 0) |
{ | { | ||
+ | WScript.Sleep(100); | ||
WScript.Echo(exec.StdOut.ReadAll()); | WScript.Echo(exec.StdOut.ReadAll()); | ||
} | } | ||
Line 120: | Line 121: | ||
// wait until the script finishes | // wait until the script finishes | ||
- | while (!exec.StdOut.AtEndOfStream) | + | while (exec.Status == 0) |
{ | { | ||
+ | WScript.Sleep(100); | ||
WScript.Echo(exec.StdOut.ReadAll()); | WScript.Echo(exec.StdOut.ReadAll()); | ||
} | } | ||
Line 184: | Line 186: | ||
"option batch abort\n" + | "option batch abort\n" + | ||
"option confirm off\n" + | "option confirm off\n" + | ||
- | "open \"" + session + "\"\n" + | + | "open \"" + SESSION + "\"\n" + |
"get \"" + REMOTEPATH + filenameLatest + "\" \"" + LOCALPATH + "\"\n" + | "get \"" + REMOTEPATH + filenameLatest + "\" \"" + LOCALPATH + "\"\n" + | ||
"exit\n"); | "exit\n"); |