`

DOS Command to remove shortcut arrow and add open command window here

阅读更多

@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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics