<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Visual C++ Tips &#187; FILE_ATTRIBUTE_HIDDEN</title>
	<atom:link href="http://weseetips.com/tag/file_attribute_hidden/feed/" rel="self" type="application/rss+xml" />
	<link>http://weseetips.com</link>
	<description>Gold mine of Visual C++ tricks!</description>
	<lastBuildDate>Thu, 11 Mar 2010 09:09:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to hide file programmatically?</title>
		<link>http://weseetips.com/2008/08/18/how-to-hide-file-programmatically/</link>
		<comments>http://weseetips.com/2008/08/18/how-to-hide-file-programmatically/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 18:06:14 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Codeproject]]></category>
		<category><![CDATA[Windows APIs]]></category>
		<category><![CDATA[CFile::SetStatus()]]></category>
		<category><![CDATA[file hide]]></category>
		<category><![CDATA[FILE_ATTRIBUTE_HIDDEN]]></category>
		<category><![CDATA[hidden file]]></category>
		<category><![CDATA[hide file]]></category>
		<category><![CDATA[SetFileAttributes()]]></category>

		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=386</guid>
		<description><![CDATA[Hidden files are very basic and primitive mode of protection. If your file is set as hidden, it won&#8217;t get listed to normal user, unless he explicitly enabled &#8211; &#8220;Show hidden files&#8221;. Well, how to make a file really hidden? You can use the api &#8211; SetFileAttributes(). Pass FILE_ATTRIBUTE_HIDDEN as attribute and you&#8217;re file will [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" alt="" width="166" height="32" /><br />
<span style="color:#0000ff;"> Hidden files</span> are <span style="color:#0000ff;">very basic and primitive mode of protection.</span> If <span style="color:#0000ff;">your file is set as hidden</span>, it <span style="color:#0000ff;">won&#8217;t get listed</span> to normal user, unless he explicitly enabled &#8211; <span style="color:#0000ff;">&#8220;Show hidden files&#8221;</span>. Well, how to make a file really hidden?</p>
<p><img class="alignnone size-full wp-image-391" src="http://siteground205.com/~weseetip/wp-content/uploads/2008/08/hiddenfolder1.jpg" alt="" width="365" height="283" /></p>
<p><img class="alignnone size-medium wp-image-12" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" alt="" width="220" height="32" /><br />
You can use the api &#8211; <span style="color:#0000ff;">SetFileAttributes()</span>. Pass <span style="color:#0000ff;">FILE_ATTRIBUTE_HIDDEN</span> as attribute and you&#8217;re file will be hidden. Have a look at the code snippet.</p>
<pre>// The file, which is to be hidden.
CString csFile = _T("C:\\Autumn Leaves.jpg");

// Hide the file.
SetFileAttributes( csFile, FILE_ATTRIBUTE_HIDDEN );</pre>
<p><img class="alignnone size-medium wp-image-18" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" alt="" width="94" height="32" /><br />
Another alternative is to use <span><span style="color:#0000ff;">CFile::SetStatus()</span>. Have a look at it too&#8230;<br />
</span></p>
<p><img class="alignnone size-medium wp-image-51" src="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2008/08/18/how-to-hide-file-programmatically/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

