To the Top


Last Modified: October 30 2020 14:33:15
File:  root - programs - 80x86_batch - 2008 - 12 - autorun.inf.bat
File Size: 0.77KB


  1. @echo off
  2. rem A Batch Script to Create Folder 'autorun.inf'
  3. rem This can prevent autorun.inf virus.
  4. rem Free to use, put at startup recommended.
  5. rem by Zhihua Lai, 2 - Dec - 2008
  6. for %%i in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do call :sub %%i
  7. goto end
  8. :sub
  9. echo Checking %1: ...
  10. if not exist %1:\nul goto notfound
  11. if exist %1:\autorun.inf\nul goto already
  12. if exist %1:\autorun.inf goto clean
  13. goto done
  14. :clean
  15. echo removing File %1:\autorun.inf ...
  16. attrib -r -a -s -h %1:\autorun.inf
  17. del %1:\autorun.inf
  18. :done
  19. echo Making directory '%1:\autorun.inf' ...
  20. mkdir %1:\autorun.inf
  21. :already
  22. echo Attributing directory '%1:\autorun.inf' ...
  23. attrib +r +a +s +h %1:\autorun.inf
  24. goto end
  25. :notfound
  26. echo Skipping %1: ...
  27. :end
  28.  

Comments (0)

    Be the first one to comment this page !


Page Edited: May 11 2024 14:36:49 | RSS Subscription
How to Cook a Perfect Steak? | <meta name="robots" content="noindex, follow" />