戻る
Private Sub Command1_Click() Dim MyWSShell As Object Dim MyDesktop As String Set MyWSShell = CreateObject("WScript.Shell") MyDesktop = MyWSShell.SpecialFolders("Desktop") MsgBox MyDesktop, vbInformation, "デスクトップのパスを取得" Set MyWSShell = Nothing End Sub
Private Sub Command1_Click()
Dim MyWSShell As Object Dim MyDesktop As String
Set MyWSShell = CreateObject("WScript.Shell")
MyDesktop = MyWSShell.SpecialFolders("Desktop")
MsgBox MyDesktop, vbInformation, "デスクトップのパスを取得"
Set MyWSShell = Nothing
End Sub