+++ /dev/null
-Option Explicit \r
-'--- start of vbslib include ------------------------------------------------------\r
-Dim g_debug, g_vbslib_path, g_IncludeType, g_CommandPrompt, g_fs, g_sh\r
-If IsEmpty( g_fs ) Then\r
- '--- start of parameters for vbslib include -------------------------------\r
- g_debug = 0\r
- g_vbslib_path = "vbslib\vbs_incXXX.vbs" '***********\r
- g_IncludeType = ""\r
- g_CommandPrompt = 1\r
- '--- end of parameters for vbslib include ---------------------------------\r
- Dim g_f, g_include_path, i : Set g_fs = CreateObject( "Scripting.FileSystemObject" )\r
- If g_fs.FileExists("setting.vbs") Then Set g_f = g_fs.OpenTextFile( "setting.vbs" ): Execute g_f.ReadAll()\r
- If not IsEmpty( WScript.Arguments.Named.Item("IncludeType") ) Then g_IncludeType = WScript.Arguments.Named.Item("IncludeType")\r
- Set g_sh = WScript.CreateObject("WScript.Shell") : g_f = g_sh.CurrentDirectory\r
- g_sh.CurrentDirectory = g_fs.GetParentFolderName( WScript.ScriptFullName )\r
- For i = 10 To 1 Step -1 : If g_fs.FileExists(g_vbslib_path) Then Exit For\r
- g_vbslib_path = "..\" + g_vbslib_path : Next\r
- If g_fs.FileExists(g_vbslib_path) Then g_vbslib_path = g_fs.GetAbsolutePathName( g_vbslib_path )\r
- g_sh.CurrentDirectory = g_f\r
- If i=0 Then WScript.Echo "Not found " + g_fs.GetFileName( g_vbslib_path ) +vbCR+vbLF+ "Check g_vbslib_path in " + WScript.ScriptName + " or setting.vbs" : WScript.Quit 1\r
- Set g_f = g_fs.OpenTextFile( g_vbslib_path ): Execute g_f.ReadAll() : g_f = Empty\r
- If ResumePush Then On Error Resume Next\r
- main\r
- ResumePop : On Error GoTo 0\r
-End If\r
-'--- end of vbslib include --------------------------------------------------------\r
-\r
-\r
-'********************************************************************************\r
-' <<< [main] >>>\r
-'********************************************************************************\r
-Dim g_SampleLib_param\r
-\r
-Sub main()\r
- If SampleFunc <> "SampleFunc" Then WScript.Echo "Fail." : WScript.Quit 1\r
-\r
- WScript.Echo "Pass."\r
-End Sub\r
-\r
- \r