Hey,
I am trying to use WMI to list all the folders inside a folder remotely on a machien on our network here. I have some code but it uses the FileSystemObject and it dosen't work remotely.
Anyone know how I can procede to fix this problem and move on to some more code?
Here is the code that uses the File System Object.
Code:Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.GetFolder("C:\FSO") Set colSubfolders = objFolder.Subfolders For Each objSubfolder in colSubfolders Wscript.Echo objSubfolder.Name, objSubfolder.Size Next




Reply With Quote