Namino Posted September 4, 2007 Report Share Posted September 4, 2007 Does anyone know if there is a way to get at the extended properties of a file? I can see the 'Variable Set From File' command, but it deals only with the date and location of a file. I need to get the 'Owner' property...any tips would be appreciated. Quote Link to comment Share on other sites More sharing options...
Namino Posted September 4, 2007 Author Report Share Posted September 4, 2007 I've found a work-around using AutoIT: http://www.autoitscript.com/forum/index.php?showtopic=25859 However, if anyone knows how to do this using ME alone, it would be useful to know. Thanks Quote Link to comment Share on other sites More sharing options...
Cory Posted September 4, 2007 Report Share Posted September 4, 2007 I don't know exactly how to do it for ownership but as a general rule for thigns like this I find a way to do it from a command line and use that command in a Launch command. I then redirect the output of the command to a file. I then pull htat file into a variable and parse out what I need. Someone else could probably give you an easy script to do what you need but I'm not very good at VB Script so if it were me I would use XCACLS from Microsoft ot SetACL with is from a third party. But like I say there's probably a easier way with a VB Script. Quote Link to comment Share on other sites More sharing options...
Namino Posted September 5, 2007 Author Report Share Posted September 5, 2007 Thanks, that is pretty much how I did it. I just made an AutoIT script to get the owner property and then pass it to ME. Maybe you should try AutoIT as a alternative to VB. This is all I needed to write in AutoIT to get the Owner property of a file, and then save it to a text file ready for ME to read: #include <extprop.au3> $addressfile = FileOpen("H:\AutoIt\Get Owner property\file address.txt", 0) $owner_output_file = FileOpen("H:\AutoIt\Get Owner property\owner.txt", 2) $address = FileReadLine($addressfile,1) $owner1 = _GetExtProperty($address,8) $owner2 = StringReplace($owner1,"STARBANK-UK\","") FileWrite($owner_output_file, $owner2) ;MsgBox(1,"",$owner2) FileClose($addressfile) FileClose($owner_output_file) Quote Link to comment Share on other sites More sharing options...
Cory Posted September 5, 2007 Report Share Posted September 5, 2007 That's interesting, I'll have to look into that. Can it modify ACLs? Quote Link to comment Share on other sites More sharing options...
Namino Posted September 6, 2007 Author Report Share Posted September 6, 2007 Yeah, there are insructions on how to do it here Quote Link to comment Share on other sites More sharing options...
Empire10 Posted September 28, 2009 Report Share Posted September 28, 2009 That's interesting, I'll have to look into that. Thanks for sharing it..Now im searching on it. Regards Albert ______ Pret immobilier Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.