How to hide a file in MS-DOS.
How to hide a file in MS-DOS.
There are two ways of hiding the files in MS-DOS. The first way is by means of the attrib command as seen below.
attrib +h c:\autoexec.bat
This command will secrete your autoexec.bat file so a ordinary user browsing your hard disk drive would not be able to see the file. To make the file unhidden use -h as an alternative of the +h so the line would look like the below example.
attrib -h c:\autoexec.bat
Even though the file is hidden, a user might still type edit c:\autoexec.bat and still be capable to edit the file, or if the user typed attrib this would list all files with their attributes.
The other way of using ASCII font when creating the list or renaming it. Below are the steps vital for creating a list with these characters.
Type md (hold down ALT and type 987 while continuing to hold ALT, once typed in let go of alt and you should get a solid block). Press the enter key to create the directory. To get into this directory, a user would have to type cd and hold ALT while typing 987 to get the block. When pressing the enter key you might be able to get into the directory.
Bookmarks