Jump to content

Jim Dandy

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Jim Dandy

  1. I've been trying to use the _GetObjectOwner function, but I don't know if it's returning the correct data nor do I know what to do with it if it is since it seems to return "0". I tried breaking down my usage of the function to its component parts, _GetObjectSecurityDescriptor and _GetSecurityDescriptorOwner, but the script bombs when I do that. Below is an example of that script: #include "Permissions.au3" _InitiatePermissionResources() $sd = _GetObjectSecurityDescriptor(@ScriptDir & "\test.txt") $owner = _GetSecurityDescriptorOwner($sd) _ClosePermissionResources() I get exit code -1073741819 whenever I run this. Am I being an idiot, or is this not working properly?
  2. You have an extra single quote right before %systemroot%. If you enclose your statement in single quotes, you can avoid using double-double quotes. For example: RunWait('schtasks /create /RU SYSTEM /SC monthly /D 20 /TN "Monthly Defrag" /TR "%systemroot%\system32\defrag.exe %homedrive%" /ST 01:00:00')
  3. There's currently no native way to control hardware in AutoIt, but using Devcon.exe will do the trick.
  4. Thank you so much, I have taken the time to test this out and it works like a charm. Auto3Lib is quite impressive. I'm still trying to wrap my brain around many of the functions, but it's ingenious.
  5. I apologize if I am being totally stupid, but I would like to use this code, but you state that I must fist create a Filetime Dll Structure- which I am not sure how to do. Here's the situation: I have some filetime data that I am receiving in an XML document and I would like to convert it to user readable MM/DD/YYYY HH:MM:SS format. Here is an example of the data I receive: <CREATIONTIME> <HIGHPART>0x01C6FE83</HIGHPART> <LOWPART>0x92D51928</LOWPART> </CREATIONTIME> <LASTMODIFICATIONTIME> <HIGHPART>0x01C6FE97</HIGHPART> <LOWPART>0x395C54EA</LOWPART> </LASTMODIFICATIONTIME> I have been doing a lot of reading on this forum, MSDN, Google searches, etc. and I am somehow just not seeing the answer. Could someone do a little hand-holding for me and lead me to the answer without flaming me for being a dumbass?
×
×
  • Create New...