How make file hidden in Java with Example

Tutorials Shared by the Internet Community

Advertisements


Synopsis

quick tip to make any file hidden in Java or create new hidden files in Unix and windows environment. Java File API doesnt provide any direct way of

Statistics

  • Total Hits - 17456

  • Total Votes - 108 votes

  • Vote Up - 49 votes

  • Vote Down - 59 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2012-01-14 11:40:43

Description

quick tip to make any file hidden in Java or create new hidden files in Unix and windows environment. Java File API doesnt provide any direct way of doing this prior to JDK 7 and you need to workaround this by executing DOS command in windows and having dot in start of file name in Unix. from JDK7 onwards you can set attribute hidden as true. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements