Personal tools
You are here: Home コンピュータ Windows Tips Windows Scripting Hosts Folder選択ダイアログ
Document Actions

Folder選択ダイアログ

by すぎお last modified 2007-09-10 12:14

Windows ScriptでFolder選択ダイアログを使用する。

Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.BrowseForFolder( 0, "フォルダ選択", 11, 0 )
if objFolder is nothing then
WScript.Quit
end if
If not objFolder.Self.IsFileSystem then
WScript.Echo "ファイルシステムではありません"
WScript.Quit
end if
WScript.Echo objFolder.Self.Path
« January 2009 »
Su Mo Tu We Th Fr Sa
123
45678910
11121314151617
18192021222324
25262728293031
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: