3

We know that by this code we can hide a file:

File.SetAttributes(path, FileAttributes.Hidden);

But the problem is that you can see these kind of hidden files by choosing "Show hidden files, folders, and drivers" in Folder Options in Windows Control Panel.

How can we make a file (like a .mkv file) hidden which can only be seen by our programs permission?

Thanks!

Mohsen Nemati
  • 379
  • 1
  • 11
  • It is not possible on windows in file level. In directory level, you can set the permisiion for one windows user. But all other users will see this directory, but they cannot step into – György Gulyás Nov 30 '18 at 19:54

0 Answers0