Skip to content

Commit

Permalink
Add the file
Browse files Browse the repository at this point in the history
  • Loading branch information
timotei committed Jan 27, 2012
0 parents commit 9b3d340
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions DisableAutorunAndRecycler.bat
@@ -0,0 +1,15 @@
@echo off

echo Disabling Autorun...
IF EXIST Autorun.inf del /f /s /q autorun.inf
mkdir AUTORUN.INF
attrib +r +a +s +h AUTORUN.INF

echo Disabling Recycler...
IF EXIST RECYCLER ren RECYCLER RECYLER_DEL
echo "Don't delete this!" > RECYCLER
attrib +r +a +s +h RECYCLER
IF EXIST RECYCLER_DEL rmdir /s /q RECYCLER_DEL

echo Done.
pause

0 comments on commit 9b3d340

Please sign in to comment.