<?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; hide file</title>
	<atom:link href="http://weseetips.com/tag/hide-file/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>
		<item>
		<title>How to hide files/folders in Windows NTFS file system?</title>
		<link>http://weseetips.com/2008/07/31/how-to-hide-filesfolders-in-windows-ntfs-file-system/</link>
		<comments>http://weseetips.com/2008/07/31/how-to-hide-filesfolders-in-windows-ntfs-file-system/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 17:30:31 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Codeproject]]></category>
		<category><![CDATA[FileSystem]]></category>
		<category><![CDATA[ADS]]></category>
		<category><![CDATA[Alternate Data Streams]]></category>
		<category><![CDATA[file streams]]></category>
		<category><![CDATA[hide file]]></category>
		<category><![CDATA[hide folder]]></category>
		<category><![CDATA[lock file]]></category>
		<category><![CDATA[lock folder]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[streams]]></category>
		<category><![CDATA[trojen]]></category>
		<category><![CDATA[virus]]></category>

		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=286</guid>
		<description><![CDATA[I still feel nostalgic about the golden era of Windows 95 &#38; 98. During those days, we can lock our important data by using the &#8220;Alt+255&#8243; trick which make it difficult for other to open and access data. Well, the &#8220;Alt+255&#8243; trick won&#8217;t work in latest windows versions. Is there any other cool trick to [...]]]></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;"> I still feel nostalgic about the golden era of Windows 95 &amp; 98.</span> During those days, <span style="color:#0000ff;">we can lock</span> our important data <span style="color:#0000ff;">by using the &#8220;Alt+255&#8243; </span>trick which make it difficult for other to open and access data. <span style="color:#0000ff;">Well, the &#8220;Alt+255&#8243; trick won&#8217;t work in latest windows versions.</span> <img src='http://weseetips.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><img class="alignnone size-full wp-image-287" src="http://siteground205.com/~weseetip/wp-content/uploads/2008/07/hide_folders.jpg" alt="" width="414" height="263" /></p>
<p>Is there any other cool trick to hide data like the previous version of windows?</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 />
yes! You can utilize the <span style="color:#0000ff;">&#8220;<strong>Alternate Data Streams</strong>&#8220;( <strong>ADS</strong> )</span> of <span style="color:#0000ff;">NTFS </span>file system. <span style="color:#0000ff;">ADS </span>is the feature by which a single file can have multiple data streams under it. <span style="color:#0000ff;">Only a stream aware application can iterate it.</span> For other application, its just a file with single stream under it. Well, lets do some exercises. We&#8217;re going to hide the file <span style="color:#0000ff;">Secret.avi</span> under file <span style="color:#0000ff;">Innocent.txt. <span style="color:#000000;">Take dos console and execute the commands. <span style="color:#0000ff;">I&#8217;m assuming that both files are present in your current directory.</span> </span></span></p>
<pre>Syntax: type <em>&lt;FileToHide&gt;</em> <em>&lt;DestinationFile&gt;</em>:<em>&lt;StreamName&gt;</em>
E.g. C:\&gt;type Secret.avi &gt; Innocent.txt:SecretStream.avi</pre>
<p>Now the <span style="color:#0000ff;">Secret.avi</span> file is <span style="color:#0000ff;">copied </span>as <span style="color:#0000ff;">another data stream under Innocent.txt</span> file. <span style="color:#0000ff;">Try opening the Innocent.txt</span>. Its <span style="color:#0000ff;">just the text file</span>. huh? Well, now execute the following command to get the file back.</p>
<pre>Syntax: more &lt; <em>&lt;DestinationFile&gt;</em>:<em>&lt;StreamName&gt;</em> &gt; <em>&lt;RestoreFileName&gt;</em>
C:\&gt; more &lt; Innocent.txt:SecretStream.avi &gt; RestoredSecret.avi</pre>
<p>You got the file back!</p>
<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 />
ADS is one for the <span style="color:#0000ff;">favorite feature of virus writers</span>. Trojans and viruses utilize ADS to get hidden from user eyes. Many of us might notice that, <span style="color:#0000ff;">even if we delete away some files, after next restart they reappear.</span> Yes! the real virus might be under some innocent file. <img src='http://weseetips.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Have a look at Wiki too &#8211; <a title="http://www.wikistc.org/wiki/Alternate_data_streams" href="http://www.wikistc.org/wiki/Alternate_data_streams" target="_blank">http://www.wikistc.org/wiki/Alternate_data_streams</a></p>
<p><img class="alignnone size-medium wp-image-54" src="http://weseetips.files.wordpress.com/2008/03/advancedseries.jpg?w=217" alt="" width="217" height="32" /><br />
Targeted Audience &#8211; Advanced.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2008/07/31/how-to-hide-filesfolders-in-windows-ntfs-file-system/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

