Differences

This shows you the differences between the selected revisions of the page.

2009-04-14 2009-04-14
created (martin) link msdn doc on objects (martin)
Line 24: Line 24:
To use the examples below copy the JavaScript code to file (e.g. ''example.js'') and use ''cscript.exe'' to execute it (use ''/nologo'' to suppress banner): To use the examples below copy the JavaScript code to file (e.g. ''example.js'') and use ''cscript.exe'' to execute it (use ''/nologo'' to suppress banner):
<code> <code>
-cscript /nologo exemple.js+cscript /nologo example.js
</code> </code>
==== Access to Input/Output streams ==== ==== Access to Input/Output streams ====
-You can use ''Scripting.FileSystemObject'' to execute WinSCP console interface tool and feed the script commands (using input stream), without creating temporary script file:+You can use ''[[http://msdn.microsoft.com/en-us/library/6kxy1a51(VS.85).aspx|Scripting.FileSystemObject]]'' to execute WinSCP console interface tool and feed the script commands (using input stream), without creating temporary script file:
<code javascript> <code javascript>
var shell = WScript.CreateObject("WScript.Shell"); var shell = WScript.CreateObject("WScript.Shell");
Line 47: Line 47:
==== XML parsing ==== ==== XML parsing ====
-You can use ''MSXML2.DOMDocument'' to parse [[logging_xml|XML log]] produced by WinSCP. The following example follows up to the previous one (which starts session with XML logging and lists contents of initial directory):+You can use ''[[http://msdn.microsoft.com/en-us/library/ms756987(VS.85).aspx|MSXML2.DOMDocument]]'' object to parse [[logging_xml|XML log]] produced by WinSCP. The following example follows up to the previous one (which starts session with XML logging and lists contents of initial directory):
<code javascript> <code javascript>
// parse XML log file // parse XML log file

Last modified: by martin