samuel.nunn
New Member
- Joined
- Feb 22, 2009
- Messages
- 20
I'm trying to display the owner of a particular folder, but I can't find the code. Any ideas? Here is what I have:
Code:
Sub ShowFolderInfo()
FolderSpec = "C:\Documents and Settings\user\My Documents\test\"
Dim fs As Object
Dim f As Object
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder(FolderSpec)
s = f.Owner 'Owner does not work
MsgBox s
End Sub