Skip to content

Instantly share code, notes, and snippets.

@AshikNesin
Created March 30, 2014 10:27
Show Gist options
  • Save AshikNesin/9870723 to your computer and use it in GitHub Desktop.
Save AshikNesin/9870723 to your computer and use it in GitHub Desktop.
Batch script to remove shortcut virus from Pendrive....... Read More : http://www.hugethoughts.com/create-basic-antivirus/
attrib -r -a -s -h /s /d
attrib -r -a -s -h autorun.inf
del autorun.inf
mkdir autorun.inf
attrib +s +h +r autorun.inf
attrib -s -h -r RECYCLER
rd /s RECYCLER
copy /y NUL RECYCLER
attrib +s +h +r RECYCLER
cacls /P autorun.inf everyone:N
cacls /P RECYCLER everyone:N
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment