Skip to content

Instantly share code, notes, and snippets.

@MinhasKamal
Last active December 7, 2015 15:39
Show Gist options
  • Save MinhasKamal/74e4cdaf30b790ec035b to your computer and use it in GitHub Desktop.
Save MinhasKamal/74e4cdaf30b790ec035b to your computer and use it in GitHub Desktop.
🔨 Fixes pendrive attacked by shortcut virus.
@echo ---------------------------------------------------------------
@echo Shortcut Fixer
@echo ---------------------------------------------------------------
@echo Instructions:
@echo 1. insert your pendrive
@echo 2. input your pen drive letter [**be very carefull**]
@echo ---------------------------------------------------------------
@pause
@echo.
@echo Enter drive letter:
@set /p drive=
@echo.
@attrib -h -r -s /s /d %drive%:\*.*
@%drive%:
@del *.lnk /f/s/q
@echo Task Completed.
@pause
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment