@echo off
echo.
echo Removing shortcut arrow and adding open command window here
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%windir%\System32\shell32.dll,-50" /f >nul
REG DELETE "HKCR\Directory\shell\cmd" /v Extended /f >nul
REG DELETE "HKCR\Directory\Background\shell\cmd" /v Extended /f >nul
REG DELETE "HKCR\Drive\shell\cmd" /v Extended /f >nul
echo Alterted regedit
echo.
echo Restarting explorer
taskkill /f /im explorer.exe >nul
start explorer.exe
echo Restarted explorer
echo.
pause