B4J Code Snippet Set windows file attribute to hidden

aminoacid

Active Member
Licensed User
Longtime User
Very nice. But just curious to know if there is any reason why you would not want to do the same thing with jShell?
 

aminoacid

Active Member
Licensed User
Longtime User
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:

peacemaker

Expert
Licensed User
Longtime User
Thanks. Imho, better to show the real example of Array("attrib +H <path_to_your_file>"), under Win and Linux.
 

aeric

Expert
Licensed User
Longtime User
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.
 
Top