Hi all,
I'm new to the list, and have a question:
where self.c is a wmi.WMI() connection to a remote machine using my
username and password (I am admin)
why does the line below ALWAYS return an empty list ???
aFile = self.c.Win32_Directory(Name = "C:\\Users"):
print aFile
[]
I have tried various permutations of Name (raw string, single/ double
backslashes, different filenames) but all returned an empty list.
I also tried the Query version:
aTest = self.c.Query('Select * from Win32_Directory WHERE
Name=\"C:\\Users\"')
Ultimately I am trying to delete or rename a folder on a remote machine
that may contain a file that is open by the user, but it seems as though
this whole thing is a non-starter
Any help greatly appreciated!
Trevor
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32