7,763
社区成员
发帖
与我相关
我的任务
分享
Private Sub Command1_Click()
Set spShell = CreateObject("Shell.Application")
Set spfolder = spShell.BrowseForFolder(0, "选择目录:", 0, "C:\Scripts")
If spfolder Is Nothing Then Exit Sub
Set spFolderItem = spfolder.Self
spPath = spFolderItem.Path
spPath = Replace(spPath, "\", "\")
Print spPath
End Sub