Differences
This shows you the differences between the selected revisions of the page.
| 2009-11-03 | 2009-11-21 | ||
| Restored revision 1252745873. Undoing revision 1257247956. (martin) (hidden) | 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"); | ||