Hide Or Unhide Files

Hide Or Unhide Files

@echo off
title Hide Files
color 1f
echo Enter name of drive in which file is exist
set /p drive=
%drive%:
echo Enter name of folder
set /p folder=
cd /%folder%
cls
echo 1: Hide 
echo 2: Unhide
set /p choice=
echo Type 1 OR 2
if %choice%==1 goto :1
if %choice%==2 goto :2

:1
echo Enter name of file that you want to hide
set /p file=
attrib +s +h "%file%"
echo Done..
pause
exit

:2
echo Enter name of file that you want to unhide
set /p file=
attrib -s -h -r "%file%"
echo Done..
pause
exit


Comments