VBScriptãJScriptã§ä½æããå ±éæ©è½ãä»ã®è¨èªããå©ç¨ããããã®ä»çµã¿ã¨ãã¦Windows Script Component(Windows ã¹ã¯ãªãã ã³ã³ãã¼ãã³ã)ã¨ãããã®ãããã¾ãã
WindowsRã¹ã¯ãªãã ã³ã³ãã¼ãã³ãã使ç¨ããã¨ãã¹ã¯ãªããå ã«ããã¯ãã«ã§åå©ç¨å¯è½ãª COM ã³ã³ãã¼ãã³ããç°¡åã«ä½æã§ãã¾ããMicrosoftR ActiveXR Scripting ã¤ã³ã¿ã¼ãã§ã¤ã¹ããµãã¼ããã¦ããã¹ã¯ãªããè¨èªã使ç¨ãã¦ãã¹ã¯ãªããã³ã³ãã¼ãã³ããä½æãã¾ãããã®ã¤ã³ã¿ã¼ãã§ã¤ã¹ããµãã¼ãããã¹ã¯ãªããè¨èªã«ã¯ãJScriptãMicrosoftR Visual BasicR Scripting Edition (VBScript)ãPERLScriptãPScriptãããã³ Python ãããã¾ãã
ã¹ã¯ãªãã ã³ã³ãã¼ãã³ãã®ç´¹ä»
ãã®Windows Script Component(.wsc)ãã¡ã¤ã«ã®ã²ãªåãèªåçæãããã¼ã«ã¨ãã¦ãWindows Script Component Wizardãããã¾ããWindows Script Component Wizardãå©ç¨ãããã¨ã§ãã¡ã½ãããããããã£ã®å®ç¾©ãã¯ã©ã¹IDãªã©ãã¦ã£ã¶ã¼ãã«å¾ãã ãã§ãèªåçæãããã¨ãã§ãã¾ãã
ãã¦ã³ãã¼ãã¨ã¤ã³ã¹ãã¼ã«
- 以ä¸ã®ãµã¤ãããwz10en.exeã¨ãããã¡ã¤ã«ããã¦ã³ãã¼ããã¾ãã
- ãã¦ã³ãã¼ããå®äºããããexeãã¡ã¤ã«ãèµ·åããã¦ã£ã¶ã¼ãã«å¾ãã¤ã³ã¹ãã¼ã«ãè¡ãã¾ãã
Windows Script Component Wizardãå©ç¨ããèªåçæ
ã³ã³ãã¼ãã³ãã®åºæ¬æ å ±
Windows Script Component Wizardãèµ·åããã¨ã以ä¸ã®ãããªç»é¢ã表示ããã¾ãããã®ç»é¢ã§ã¯ãã³ã³ãã¼ãã³ãã®å称ããã¡ã¤ã«åãåºåå
ãªã©ãæå®ãã¾ãã
使ç¨ããè¨èªã®é¸æ
使ç¨ããè¨èªãVBScriptãJScriptããããã¯ãã®ä»ã®è¨èªããé¸æãããã¨ãã§ãã¾ããã¾ããã¨ã©ã¼éç¥ããããã°ã¢ã¼ãã®ON/OFFãimplementsãµãã¼ãã®é¸æ(DHTML ããã¤ãã¢ã¨ASP)ãè¡ããã¨ãã§ãã¾ãã*1
ããããã£ã®è¿½å
次ã®ã¦ã£ã¶ã¼ãã§ã¯ãä»»æã®ããããã£ã追å ãããã¨ãã§ãã¾ãã
ã¡ã½ããã®è¿½å
次ã®ã¦ã£ã¶ã¼ãã§ã¯ãä»»æã®ã¡ã½ããã追å ãããã¨ãã§ãã¾ãã
ã¤ãã³ãã®è¿½å
次ã®ã¦ã£ã¶ã¼ãã§ã¯ãä»»æã®ã¤ãã³ãã追å ãããã¨ãã§ãã¾ãã
å ¥å確èª
å
¥åããå
容ã確èªããFinishãã¿ã³ãã¯ãªãã¯ãããã¨ã§ãæå®ããåºåå
ã«.wscãã¡ã¤ã«ãçæããã¾ãã
çæãããã½ã¼ã¹
ã¡ãªã¿ã«ä»¥ä¸ã®ãããªã½ã¼ã¹ã³ã¼ããåºåããã¾ãã
<?xml version="1.0"?> <component> <?component error="true" debug="true"?> <registration description="Test" progid="Test.WSC" version="1.00" classid="{a60d034e-eaf1-489a-965e-8bf1e8a15edc}" > </registration> <public> <property name="FileName"> <get/> <put/> </property> <method name="ReadFile"> </method> <event name="hoge"/> </public> <implements type="Behavior" id="Behavior"/> <script language="VBScript"> <![CDATA[ dim FileName function get_FileName() get_FileName = FileName end function function put_FileName(newValue) FileName = newValue end function function ReadFile() ReadFile = "Temporary Value" end function ]]> </script> </component>
åèãµã¤ã
é¢é£ããã¨ã³ããª
*1:implementsãµãã¼ãã¯ä½¿ç¨ãããã¨ããªãããã詳細ã¯åããã¾ããã