- ©«¤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
|
[µ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
ÁÂÁ«ü¾É |
|