@echo off
cls
echo MKAUTORN.BAT is an autorun.inf folder maker by Joe.
echo Visit my website at http://extratopics.com
echo.
echo This batch file will do the following:
echo 1) Remove hidden, system, and read-only attribute of autorun.inf FILE
echo 2) Delete autorun.inf FILE
echo 3) Create autorun.inf FOLDER
echo 4) Create a CON folder inside the autorun.inf folder
echo 5) Hide the autorun.inf folder
echo.
echo This batch file should be executed from your USB drive's root directory to
echo function properly. Make sure you copy this batch file to the root of your USB drive
echo first. If not, press Ctrl+C NOW to terminate this job then run this batch file
echo again from there.
echo.
echo NOTE: I didn't put any file checking (if exist) feature to make sure that this
echo batch file runs as quickly as possible. If there's any error messages or Yes or No
echo question that appears, simpy anwser YES by pressing "Y".
echo.
pause
echo.
attrib autorun.inf -r -h -s
del autorun.inf
md autorun.inf
cd autorun.inf
md .\con\
cd\
attrib autorun.inf +r +h +s
echo.
dir autorun.* /a
echo.
echo DONE!
pause