Differences
This shows you the differences between the selected revisions of the page.
2014-05-09 | 2014-07-21 | ||
fixing interwiki links with spaces (martin) | jscript not javascript (martin) | ||
Line 24: | Line 24: | ||
It supports all the features listed in Windows command interpreter section above (with greater flexibility). Plus it includes many advanced functions, you may find useful when using together with WinSCP. See sections below. | It supports all the features listed in Windows command interpreter section above (with greater flexibility). Plus it includes many advanced functions, you may find useful when using together with WinSCP. See sections below. | ||
- | To use the examples below copy the JavaScript code to file (e.g. ''example.js'') and use ''[[http://technet.microsoft.com/en-us/library/bb490887.aspx|cscript.exe]]'' to execute it (use ''/nologo'' to suppress banner): | + | To use the examples below copy the JScript code to file (e.g. ''example.js'') and use ''[[http://technet.microsoft.com/en-us/library/bb490887.aspx|cscript.exe]]'' to execute it (use ''/nologo'' to suppress banner): |
<code> | <code> | ||
cscript /nologo example.js | cscript /nologo example.js | ||
Line 93: | Line 93: | ||
==== Hidden execution ==== | ==== Hidden execution ==== | ||
- | When executing JavaScript code with ''[[http://technet.microsoft.com/en-us/library/bb490887.aspx|cscript.exe]]'', console window is shown. If you want to execute the JavaScript without showing console window, use ''[[http://technet.microsoft.com/en-us/library/bb490816.aspx|wscript.exe]]'' instead. | + | When executing JScript code with ''[[http://technet.microsoft.com/en-us/library/bb490887.aspx|cscript.exe]]'', console window is shown. If you want to execute the JScript without showing console window, use ''[[http://technet.microsoft.com/en-us/library/bb490816.aspx|wscript.exe]]'' instead. |
Some notes for using ''wscript'': | Some notes for using ''wscript'': |