Tuesday, October 21, 2008

A cool notepad trick

A couple of days ago, I found a neat trick to do with notepad. At this point, I'm not sure if there's any purpose for it, other than to brag to your friends about it, or if you have some text to hide. This trick simply uses Notepad that is built into windows. Usually, in order to create a text file from the command prompt, or the run command, you type:
notepad myfile.txt
You would now have a normal text file. But if you want to hide some text within that text file, you can actually create a (hidden) file, within the visible file. How? you ask .. well, comin' right up. Simple open up a command prompt, by going to start / run... and type cmd. Then type the following:
notepad visiblefile.txt:hiddenfile.txt
This will open up the file that is hidden within visiblefile.txt. hiddenfile.txt will not show up if you browse to the directory, or look at it in explorer, it's embedded within the visible file. So now if you want to edit visiblefile.txt, you simple double click on it within explorer, and if you want to edit the hidden file you created, you just type the same command line above to open it. Note, that if you delete the visiblefile.txt file, your hiddenfile.txt will also be deleted with it.

No comments: