Advertisement
Guest User

Hidden Files + Directories

a guest
Feb 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.53 KB | None | 0 0
  1. @echo off
  2. start "" "C:\Users\%USERNAME%\Downloads\"
  3. title Hidden Files + Directories
  4. color 5F
  5.  
  6. :start
  7. echo Please enter the File Name (Example: Photo.jpg)
  8. set /p selection=
  9. pause
  10. cls
  11.  
  12. echo 1. Hide File
  13. echo 2. Unhide File
  14. set /p choice=
  15. if %choice%==1 goto hide_file
  16. if %choice%==2 goto unhide_file
  17. pause
  18. cls
  19.  
  20. :hide_file
  21. attrib +h "C:\Users\%USERNAME%\Downloads\%selection%"
  22. echo Finished!
  23. pause
  24. cls
  25. goto start
  26.  
  27. :unhide_file
  28. attrib -h "C:\Users\%USERNAME%\Downloads\%selection%"
  29. echo Finished!
  30. pause
  31. cls
  32. goto start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement