Change soft-fail to use the config, rather than env
[rbx.git] / stdlib / ext / win32ole / sample / oledirs.rb
blob1c77e76f145908662f3cf983bbf1cb5f3907379e
2 # You need WSH(Windows Scripting Host) to run this script.
5 require "win32ole"
7 def listup(items)
8 #  items.each do |i|
9   for i in items
10     puts i.name 
11   end
12 end
14 fs = WIN32OLE.new("Scripting.FileSystemObject")
16 folder = fs.GetFolder(".")
18 puts "--- folder of #{folder.path} ---"
19 listup(folder.SubFolders)
21 puts "--- files of #{folder.path} ---"
22 listup(folder.Files)