Dim jo As JavaObject
jo.InitializeStatic("java.lang.Runtime")
jo.RunMethodJO("getRuntime", Null).RunMethod("exec", Array("attrib +H <path_to_your_file>"))
No, but I have used jShell to run various Linux shell commands, so I am assuming that it will work with "DOS" commands like "attrib" too. I'll look into it when I get a chance. I was just curious to know if there are any advantages/disadvantages of using one technique over the other.
This code snippet is a response to another thread for license software protection. If someone is going to hide a file in a hidden folder such as in username\AppData\Roaming\Microsoft\xxx
I take another step further to make the file hidden. You may use any file path you like.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.