Open

構文
Shell.Oepn( vDir )
引数
vDir
フォルダーのパスまたはShellSpecialFolderConstants値のいずれかを指定する文字列。
戻値

プログラム実行例

ごみ箱を開く

CONST ssfBITBUCKET = 10 DIM Shell = CREATEOLEOBJ("Shell.Application") Shell.Open(ssfBITBUCKET)

定数一覧

ShellSpecialFolderConstants

名前説明
ssfDESKTOP0デスクトップ
ssfPROGRAMS2C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
ssfCONTROLS3
ssfPRINTERS4
ssfPERSONAL5ドキュメント
ssfFAVORITES6お気に入り
ssfSTARTUP7C:\Users\akita\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
ssfRECENT8最近使った項目
ssfSENDTO9C:\Users\akita\AppData\Roaming\Microsoft\Windows\SendTo
ssfBITBUCKET10ごみ箱
ssfSTARTMENU11スタート メニュー
ssfDESKTOPDIRECTORY16C:\Documents and Settings\username\Desktop
ssfDRIVES17
ssfNETWORK18
ssfNETHOOD19C:\Users\akita\AppData\Roaming\Microsoft\Windows\Network Shortcuts
ssfFONTS20C:\Windows\Fonts
ssfTEMPLATES21C:\Users\akita\AppData\Roaming\Microsoft\Windows\Templates
ssfCOMMONSTARTMENU22C:\ProgramData\Microsoft\Windows\Start Menu
ssfCOMMONPROGRAMS23C:\ProgramData\Microsoft\Windows\Start Menu\Programs
ssfCOMMONSTARTUP24C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
ssfCOMMONDESKTOPDIR25C:\Users\Public\Desktop
ssfAPPDATA26C:\Users\akita\AppData\Roaming
ssfPRINTHOOD27C:\Users\akita\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
ssfLOCALAPPDATA28C:\Users\akita\AppData\Local
ssfALTSTARTUP29C:\Users\akita\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
ssfCOMMONALTSTARTUP30C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
ssfCOMMONFAVORITES31C:\Users\username\Favorites
ssfINTERNETCACHE32Temporary Internet Files
ssfCOOKIES33INetCookies
ssfHISTORY34History
ssfCOMMONAPPDATA35C:\ProgramData
ssfWINDOWS36%windir% or %SystemRoot%
ssfSYSTEM37C:\Windows\System32
ssfPROGRAMFILES38C:\Program Files (x86)
ssfMYPICTURES39ピクチャ
ssfPROFILE40C:\Users\username
ssfSYSTEMx8641C:WindowsSystem32, or C:WindowsSyswow32
ssfPROGRAMFILESx8648C:Program Files, or C:Program Files (X86);
CONST ssfDESKTOP = 0 CONST ssfPROGRAMS = 2 CONST ssfCONTROLS = 3 CONST ssfPRINTERS = 4 CONST ssfPERSONAL = 5 CONST ssfFAVORITES = 6 CONST ssfSTARTUP = 7 CONST ssfRECENT = 8 CONST ssfSENDTO = 9 CONST ssfBITBUCKET = 10 CONST ssfSTARTMENU = 11 CONST ssfDESKTOPDIRECTORY = 16 CONST ssfDRIVES = 17 CONST ssfNETWORK = 18 CONST ssfNETHOOD = 19 CONST ssfFONTS = 20 CONST ssfTEMPLATES = 21 CONST ssfCOMMONSTARTMENU = 22 CONST ssfCOMMONPROGRAMS = 23 CONST ssfCOMMONSTARTUP = 24 CONST ssfCOMMONDESKTOPDIR = 25 CONST ssfAPPDATA = 26 CONST ssfPRINTHOOD = 27 CONST ssfLOCALAPPDATA = 28 CONST ssfALTSTARTUP = 29 CONST ssfCOMMONALTSTARTUP = 30 CONST ssfCOMMONFAVORITES = 31 CONST ssfINTERNETCACHE = 32 CONST ssfCOOKIES = 33 CONST ssfHISTORY = 34 CONST ssfCOMMONAPPDATA = 35 CONST ssfWINDOWS = 36 CONST ssfSYSTEM = 37 CONST ssfPROGRAMFILES = 38 CONST ssfMYPICTURES = 39 CONST ssfPROFILE = 40 CONST ssfSYSTEMx86 = 41 CONST ssfPROGRAMFILESx86 = 48