title: How to set clear attribute "X" on files with in C#?
body: <p>I have a hidden file on my USB removable storage (FAT file system). </p>
  
  <p>I'm using Windows 7. If I go to Properties window of this file and then to the Details tab, I will see that the attributes of the file are <code>HX</code>. When I run <code>cmd</code> and use <code>attrib</code>, I was told that file has attribute H. Nothing about X. I've tried <code>help attrib</code>, but still nothing about attribute X.</p>
  
  <p>I know that:</p>
  
  <ul>
  <li>H = Hidden</li>
  <li>S = System</li>
  <li>A = Archival</li>
  <li>R = Readonly</li>
  </ul>
  
  <p>However, I have no idea what X stands for. I've also found what the <a href="http://www.vistax64.com/vista-general/79955-explorer-file-attribute.html" rel="nofollow noreferrer">N and E attributes</a> are for.</p>
  
  <p><a href="http://en.wikipedia.org/wiki/Attrib" rel="nofollow noreferrer">Wikipedia</a> has no mention of what the X attribute is.</p>
  
  <p>Google found two topics mentioning attribute X:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/5808598/how-to-create-an-undeletable-file-in-delphi">undeletable file in delphi</a></li>
  <li><a href="https://superuser.com/questions/180306/file-attribute-of-x">file attribute of x</a>. </li>
  <li><a href="http://jpsoft.com./help/index.htm?attrib.htm" rel="nofollow noreferrer">"better attrib"</a></li>
  </ul>
  
  <p>None of these helped.</p>
  
  <p>I'd like to be able to read/write this flag in C#, but so far I read the documentation for the <a href="http://msdn.microsoft.com/en-us/library/system.io.fileattributes.aspx" rel="nofollow noreferrer"><code>FileAttributes</code> enumeration</a> and experimented with setting some of listed attributes (using <a href="http://www.csharp-examples.net/file-attributes/" rel="nofollow noreferrer"><code>File.GetAttributes</code> &amp; <code>File.SetAttributes</code></a> methods) on the file. </p>
  
  <p>None of these experiments resulted in attribute X showing up in Properties -> Details. So, I have no idea how to approach it, especially since I still don't know what attribute X means.</p>
  
  <p>So, what is attribute X and how can one set/clear it on the selected file in C#?</p>