Differences

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

2014-08-27 2014-08-27
batch file syntax highlighting (martin) batch file syntax highlighting (martin)
Line 109: Line 109:
In Windows batch file, you may retrieve current time in locale-independent format using command ''[[http://technet.microsoft.com/en-us/library/bb491034.aspx|wmic]] os get LocalDateTime''. You can parse the value using using [[http://en.wikibooks.org/wiki/Windows_Batch_Scripting#String_processing|string processing syntax]]: In Windows batch file, you may retrieve current time in locale-independent format using command ''[[http://technet.microsoft.com/en-us/library/bb491034.aspx|wmic]] os get LocalDateTime''. You can parse the value using using [[http://en.wikibooks.org/wiki/Windows_Batch_Scripting#String_processing|string processing syntax]]:
-<code>+<code batch>
@echo off @echo off
Line 184: Line 184:
Run the script with command: Run the script with command:
-<code>+<code batch>
cscript /nologo example.js cscript /nologo example.js
</code> </code>

Last modified: by martin