Hide a file in C#

File.SetAttributes(filePath, File.GetAttributes(filePath) | FileAttributes.Hidden);

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.