var fso = new ActiveXObject("Scripting.FileSystemObject"); var f = fso.GetFolder("C:\\"); var lFiles = f.Files