- To hide a specific file
Output may defer according to your system so, write the code and execute/run your batch file
@echo off
attrib +h F:\FolderName\fileName.txt
It will hide file "fileName.txt" from the path "F:\FolderName\" +h = used to hide fileProgram
After writing the code, Double-click your batch file, your file is now hidden from that specific location
:: cmd to hide specific file
attrib +h [File_Full_PATHNAME]
Concept