↓テスト用レジストリ 拡張子:txtvbswsfjsphpjavahtmlutf8sjis Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.lbx] @="lbx" [HKEY_CLASSES_ROOT\lbx] @="レジストリ引数テスト" [HKEY_CLASSES_ROOT\lbx\shell] [HKEY_CLASSES_ROOT\lbx\shell\open] [HKEY_CLASSES_ROOT\lbx\shell\open\command] @="cscript.exe C:\\Temp\\lbox.wsf START \"%0\" \"%1\" %H %I \"%L\" %S END" ↓lbox.wsf 拡張子:txtvbswsfjsphpjavahtmlutf8sjis <JOB> <SCRIPT language="VBScript" src="http://lightbox.in.coocan.jp/laylaClass.vbs"> </SCRIPT> <SCRIPT language=VBScript> Call laylaFunctionTarget( "http://lightbox.in.coocan.jp/" ) Call laylaLoadFunction( "baseFunction.vbs" ) Wscript.Echo WScript.Arguments.Count nCnt = 0 For Each target in WScript.Arguments Wscript.Echo "|" & nCnt & "|" & target & "|" nCnt = nCnt + 1 Next MsgBox("") </SCRIPT> </JOB> ↓Windows2000 実行結果 拡張子:txtvbswsfjsphpjavahtmlutf8sjis 8 |0|START| |1|C:\DOCUME~1\ADMINI~1\MYDOCU~1\test.lbx| |2|C:\DOCUME~1\ADMINI~1\MYDOCU~1\test.lbx| |3|0| |4|:0:944| |5|C:\Documents and Settings\Administrator\My Documents\test.lbx| |6|1| |7|END| ↓WindowsXP 実行結果 拡張子:txtvbswsfjsphpjavahtmlutf8sjis 8 |0|START| |1|C:\Documents and Settings\lightbox\My Documents\_Template.lbx| |2|C:\Documents and Settings\lightbox\My Documents\_Template.lbx| |3|0| |4|:456:1688| |5|C:\Documents and Settings\lightbox\My Documents\_Template.lbx| |6|1| |7|END| で、解ったのは、%I で渡される後ろの数値は、プロセス ID らしいという事。 :456:1688 の 1688 は、explorer の PID です。
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.lbx] @="lbx" [HKEY_CLASSES_ROOT\lbx] @="レジストリ引数テスト" [HKEY_CLASSES_ROOT\lbx\shell] [HKEY_CLASSES_ROOT\lbx\shell\open] [HKEY_CLASSES_ROOT\lbx\shell\open\command] @="cscript.exe C:\\Temp\\lbox.wsf START \"%0\" \"%1\" %H %I \"%L\" %S END"
<JOB> <SCRIPT language="VBScript" src="http://lightbox.in.coocan.jp/laylaClass.vbs"> </SCRIPT> <SCRIPT language=VBScript> Call laylaFunctionTarget( "http://lightbox.in.coocan.jp/" ) Call laylaLoadFunction( "baseFunction.vbs" ) Wscript.Echo WScript.Arguments.Count nCnt = 0 For Each target in WScript.Arguments Wscript.Echo "|" & nCnt & "|" & target & "|" nCnt = nCnt + 1 Next MsgBox("") </SCRIPT> </JOB>
8 |0|START| |1|C:\DOCUME~1\ADMINI~1\MYDOCU~1\test.lbx| |2|C:\DOCUME~1\ADMINI~1\MYDOCU~1\test.lbx| |3|0| |4|:0:944| |5|C:\Documents and Settings\Administrator\My Documents\test.lbx| |6|1| |7|END|
8 |0|START| |1|C:\Documents and Settings\lightbox\My Documents\_Template.lbx| |2|C:\Documents and Settings\lightbox\My Documents\_Template.lbx| |3|0| |4|:456:1688| |5|C:\Documents and Settings\lightbox\My Documents\_Template.lbx| |6|1| |7|END|