諸位大大敬請賜教
Option Explicit
Dim f1,fbn
'f1 = App.EXEName
f1="莊敬自強.vbs"
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFile(f1)
fbn= fso.GetBaseName(f)
dim n
n = fso.GetParentFolderName(f.path)
msgbox n
如何可取得再上一層的路徑?如fso.GetGrandParentFolderName(f.path)
敬請協助指導,謝謝作者: yangjie 時間: 2017-11-26 10:00
實驗成功
n = fso.GetParentFolderName(f.path)
msgbox n
n = fso.GetParentFolderName(n)
msgbox n
即可
不成熟方式,