2018年07月28日 15:30
shell = CREATEOLEOBJ("Shell.Application")
root = "C:\Users\{ユーザー名}\Documents"
folder = shell.BrowseForFolder(0, "フォルダを選択して下さい", 0, root)
If folder = nothing Then
exitexit
endIf
dir = folder.Items.Item.Path
//選択したフォルダ内の全てのテキストファイルのファイル名を表示
file_type = "*.txt"
for file in GETDIR(dir, file_type)
print file
next