Dim PATH : PATH = "C:\temp\"
Dim oFS : Set oFS = CreateObject("Scripting.FileSystemObject")
Set oFOLDER = oFS.GetFolder(PATH)
For Each FILE In oFOLDER.Files
WScript.Echo FILE.Name
Next
Set oFOLDER = Nothing
Set oFS = Nothing
Dim PATH : PATH = "C:\temp\"
Dim oFS : Set oFS = CreateObject("Scripting.FileSystemObject")
Set oFOLDER = oFS.GetFolder(PATH)
For Each FILE In oFOLDER.Files
WScript.Echo FILE.Name
Next
Set oFOLDER = Nothing
Set oFS = Nothing
コメント
コメントを投稿