1 '--- start of vbslib include ------------------------------------------------------
\r
3 '//
\82±
\82±
\82Ì
\93à
\95\94\82©
\82ç Main
\8aÖ
\90\94\82ð
\8cÄ
\82Ñ
\8fo
\82µ
\82Ä
\82¢
\82Ü
\82·
\81B
\r
4 '//
\82Ü
\82½
\81Ascriptlib
\83t
\83H
\83\8b\83_
\81[
\82ð
\92T
\82µ
\82Ä
\81Avbslib
\82ð
\83C
\83\93\83N
\83\8b\81[
\83h
\82µ
\82Ä
\82¢
\82Ü
\82·
\r
6 '// vbslib is provided under 3-clause BSD license.
\r
7 '// Copyright (C) 2007-2014 Sofrware Design Gallery "Sage Plaisir 21" All Rights Reserved.
\r
9 Dim g_Vers : If IsEmpty( g_Vers ) Then
\r
10 Set g_Vers = CreateObject("Scripting.Dictionary") : g_Vers.Add "vbslib", 99.99
\r
11 Dim g_debug, g_debug_params, g_admin, g_vbslib_path, g_CommandPrompt, g_fs, g_sh, g_AppKey
\r
12 Dim g_MainPath, g_SrcPath, g_f, g_include_path, g_i, g_debug_tree, g_debug_process, g_is_compile_debug
\r
14 g_SrcPath = WScript.ScriptFullName : g_MainPath = g_SrcPath
\r
15 SetupVbslibParameters
\r
16 Set g_fs = CreateObject( "Scripting.FileSystemObject" )
\r
17 Set g_sh = WScript.CreateObject("WScript.Shell") : g_f = g_sh.CurrentDirectory
\r
18 g_sh.CurrentDirectory = g_fs.GetParentFolderName( WScript.ScriptFullName )
\r
19 For g_i = 20 To 1 Step -1 : If g_fs.FileExists(g_vbslib_path) Then Exit For
\r
20 g_vbslib_path = "..\" + g_vbslib_path : Next
\r
21 If g_fs.FileExists(g_vbslib_path) Then g_vbslib_path = g_fs.GetAbsolutePathName( g_vbslib_path )
\r
22 g_sh.CurrentDirectory = g_f
\r
23 If g_i=0 Then WScript.Echo "Not found " + g_fs.GetFileName( g_vbslib_path ) +vbCR+vbLF+_
\r
24 "Let's download vbslib and Copy scriptlib folder." : Stop : WScript.Quit 1
\r
25 Set g_f = g_fs.OpenTextFile( g_vbslib_path,,,-2 ): Execute g_f.ReadAll() : g_f = Empty
\r
26 If ResumePush Then On Error Resume Next
\r
28 ResumePop : On Error GoTo 0
\r
30 '---------------------------------------------------------------------------------
\r