ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] §Q¥Îµ{¦¡¦Û°Ê±o¨ìÀÉ®×¥»¨­filename?

[µo°Ý] §Q¥Îµ{¦¡¦Û°Ê±o¨ìÀÉ®×¥»¨­filename?

½Ñ¦ì¤j¤j"
(¸Õºâªí.vbs)      
Dim f1,fbn
        f1="¸Õºâªí"       
        Dim fso, f
        Set fso = CreateObject("Scripting.FileSystemObject")
        Set f = fso.GetFile(f1 & ".vbs")
        dim n
        n = fso.GetParentFolderName(f.path)
        Dim objXLApp
        set objXLApp = WScript.CreateObject("Excel.Application")
        objXLApp.Visible = True
        objXLApp.Workbooks.Open (n & "\" & f1 & ".xls")
        Set objXLApp = Nothing
        Set fso = Nothing
        WScript.Quit
¥i¦³¿ìªk¤£¥Î  f1="¸Õºâªí"
Åý§Q¥Îµ{¦¡¤º®e¦Û°Ê±o¨ìÀÉ®×¥»¨­filename
¦pfullname1=self filename
ÁÂÁ«ü¾É

¦^´_ 1# yangjie
§ä¨ì¤F
¥u­n¥[¤@¦C§Y¥i
Wscript.Echo "Script name: " & Wscript.ScriptName
Wscript.Echo "Script path: " & Wscript.ScriptFullName
¨Ñ¤j®a°Ñ¦Ò

TOP

        ÀR«ä¦Û¦b : §g¤l¥ß«í§Ó¡A¤p¤H«í¥ß§Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD