Using AutoIt v3, I need to copy a file and have the resulting file (a .dll) be hidden.
I tried FileCopy & FileInstall orders but they just make the file visible and not hidden after execution.
Using AutoIt v3, I need to copy a file and have the resulting file (a .dll) be hidden.
I tried FileCopy & FileInstall orders but they just make the file visible and not hidden after execution.
Both FileCopy() and FileInstall() have no arguments to set file attributes (You can see this in the function reference).
You need to move/copy the file to the intended location and then set the file attributes. FileSetAttrib() serves just that purpose.
FileCopy("nefarious.dll", "/path/to/innocent_looking.dll")
FileSetAttrib("/path/to/innocent_looking.dll", "+H")