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-2012 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", 4.0
\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
13 g_SrcPath = WScript.ScriptFullName : g_MainPath = g_SrcPath
\r
14 SetupVbslibParameters
\r
15 Set g_fs = CreateObject( "Scripting.FileSystemObject" )
\r
16 Set g_sh = WScript.CreateObject("WScript.Shell") : g_f = g_sh.CurrentDirectory
\r
17 g_sh.CurrentDirectory = g_fs.GetParentFolderName( WScript.ScriptFullName )
\r
18 For g_i = 20 To 1 Step -1 : If g_fs.FileExists(g_vbslib_path) Then Exit For
\r
19 g_vbslib_path = "..\" + g_vbslib_path : Next
\r
20 If g_fs.FileExists(g_vbslib_path) Then g_vbslib_path = g_fs.GetAbsolutePathName( g_vbslib_path )
\r
21 g_sh.CurrentDirectory = g_f
\r
22 If g_i=0 Then WScript.Echo "Not found " + g_fs.GetFileName( g_vbslib_path ) +vbCR+vbLF+_
\r
23 "Let's download vbslib "&g_Vers.Item("vbslib")&" and Copy scriptlib folder." : Stop : WScript.Quit 1
\r
24 Set g_f = g_fs.OpenTextFile( g_vbslib_path,,,-2 ): Execute g_f.ReadAll() : g_f = Empty
\r
25 If ResumePush Then On Error Resume Next
\r
27 ResumePop : On Error GoTo 0
\r
29 '---------------------------------------------------------------------------------
\r
31 Sub SetupDebugTools()
\r
33 SetBreakByFName Empty
\r
34 SetStartSectionTree ""
\r
37 Sub SetupVbslibParameters()
\r
38 '--- start of parameters for vbslib include -------------------------------
\r
39 '// g_Vers("OldMain") = 1
\r
40 g_vbslib_path = %g_vbslib_path%
\r
41 g_CommandPrompt = %g_CommandPrompt%
\r
43 g_debug = %g_debug% '// release:0, debug:99, -1:call SetupDebugTools
\r
44 '//
\82l
\82r
\83I
\83t
\83B
\83X
\82â
\83R
\83\93\83p
\83C
\83\89\82ª
\82 \82ê
\82Î
\81Ag_debug
\82ð 1
\88È
\8fã
\82É
\82·
\82é
\82Æ
\83f
\83o
\83b
\83K
\81[
\82ª
\8eg
\82¦
\82Ü
\82·
\81B
\r
45 '//
\83X
\83e
\83b
\83v
\8eÀ
\8ds
\82ð
\8aJ
\8en
\82·
\82é
\8fê
\8f\8a\82â
\81A
\95Ï
\90\94\82Ì
\92l
\82ð
\8am
\94F
\82µ
\82½
\82¢
\8fê
\8f\8a\82É
\81AStop
\96½
\97ß
\82ð
\8bL
\8fq
\82µ
\82Ä
\82
\82¾
\82³
\82¢
\81B
\r
47 '--- end of parameters for vbslib include ---------------------------------
\r
49 '--- end of vbslib include --------------------------------------------------------
\r