B4J Code Snippet Set windows file attribute to hidden

Very nice. But just curious to know if there is any reason why you would not want to do the same thing with jShell?
 
Very nice. But just curious to know if there is any reason why you would not want to do the same thing with jShell?
I haven't tried yet. Will take a look when I find time. Do you already have sample?
 
I haven't tried yet. Will take a look when I find time. Do you already have sample?

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.
 
Last edited:
Thanks. Imho, better to show the real example of Array("attrib +H <path_to_your_file>"), under Win and Linux.
 
Thanks. Imho, better to show the real example of Array("attrib +H <path_to_your_file>"), under Win and Linux.
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.
 
Back
Top