Created
September 26, 2012 11:30
-
-
Save t2psyto/3787469 to your computer and use it in GitHub Desktop.
coffeescript を ロードして実行する wsf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="Shift_JIS" standalone="yes" ?> | |
| <package> | |
| <job id="Hoge"> | |
| <script language="JScript" src="./coffee-script.js"></script> | |
| <script language="jscript"> | |
| <![CDATA[ | |
| input = "./script.coffee" | |
| var rs = new ActiveXObject("ADODB.Stream"); | |
| rs.Type = 2; // adTypeText | |
| rs.Charset = "utf-8"; | |
| rs.Open(); | |
| rs.LoadFromFile(input); | |
| var src = rs.ReadText(); | |
| CoffeeScript.run(src); | |
| ]]> | |
| </script> | |
| </job> | |
| </package> |
Author
Author
name = "CoffeeScript"
whatIsThis = ->
"This is The " + name + "!"
WScript.Echo whatIsThis()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-- coding: utf-8 --
filename: script.coffee
name = "CoffeeScript"
whatIsThis = ->
"This is The " + name + "!"
WScript.Echo whatIsThis()