Hello,
The following code give me 'null' like result, please help.
I just want to know the size of a remote folder...
strComputer = "servor"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colFolders = objWMIService.ExecQuery _
("Select * from CIM_Directory Where name = 'M:\\folder1\\folder2\\g-renard'")
i=1
For Each objFolder in colFolders
wscript.echo i,objFolder.name,"---",objFolder.filetype,"---",objFolder.FileSize,objFolder.LastAccessed,objFolder.Status
i=i+1
Next
So I haven't the global size and it is what I need...
If you have any idea... i really need help.
thanks in advance.
The following code give me 'null' like result, please help.
I just want to know the size of a remote folder...
strComputer = "servor"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colFolders = objWMIService.ExecQuery _
("Select * from CIM_Directory Where name = 'M:\\folder1\\folder2\\g-renard'")
i=1
For Each objFolder in colFolders
wscript.echo i,objFolder.name,"---",objFolder.filetype,"---",objFolder.FileSize,objFolder.LastAccessed,objFolder.Status
i=i+1
Next
So I haven't the global size and it is what I need...
If you have any idea... i really need help.
thanks in advance.