batch processing - Bat file for hide/unhide -
i made bat file hide , unhide file folders. want enable/disable inheritance it. after hiding files cant access bat file.i want help modify bat file.here code.
@echo off cls :start echo hide. files in folder echo unhide. files in folder set /p choice=type want do? if '%choice%'=='hide' goto hide if '%choice%'=='unhide' goto unhide if not '%choice%'=='hide' if not '%choice%'=='unhide' goto :error :hide attrib /d /s +s +h attrib /d /s -s -h unhide.bat icacls "%cd%" /t /inheritance:r goto :qqq :unhide attrib /d /s -s -h icacls "%cd%" /t /inheritance:e goto :aaa :qqq echo "file hide successful" goto end :aaa echo "file unhide successful" goto end :error echo "please come in right command" goto:start :end pause
try cmd.exe.
attrib -h file.bat
if file.bat executable, hidden, can unhide this.
just replace file.bat batch file need unhide.
-pringles
batch-file batch-processing
No comments:
Post a Comment