Firstly i created a file FILENAME.bat in my F: drive.
Now go to the comd propt and type the following attrib command...
attrib +h F:\FILENAME.bat
This command will hide your FILENAME.bat file so a standard user browsing your hard drive would not be able to see the file.
Now press Enter.....your is now hidden
To make the file unhidden use -h instead of the +h so the line would look like the below example....
attrib -h F:\FILENAME.bat
Although the file is hidden, a user could still type edit c:\FILENAME.bat and still be able to edit the file.
Now go to the comd propt and type the following attrib command...
attrib +h F:\FILENAME.bat
This command will hide your FILENAME.bat file so a standard user browsing your hard drive would not be able to see the file.
Now press Enter.....your is now hidden
To make the file unhidden use -h instead of the +h so the line would look like the below example....
attrib -h F:\FILENAME.bat
Although the file is hidden, a user could still type edit c:\FILENAME.bat and still be able to edit the file.
No comments:
Post a Comment