- ©«¤l
- 258
- ¥DÃD
- 77
- ºëµØ
- 0
- ¿n¤À
- 385
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2010-8-8
- ³Ì«áµn¿ý
- 2021-1-25
|
¥H«e§Ú¼g¹L
Option Explicit
Dim f1,fbn
'f1 = App.EXEName
'f1¬°BaseName
f1="²ø·q¦Û±j"
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
'Set f = fso.GetFile(f1 & ".exe")
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 & "¸ê®Æ®w\" & f1 & ".xls")
Set objXLApp = Nothing
Set fso = Nothing
Set n = Nothing
Set f = Nothing
WScript.Quit |
|