网吧常杀cmd进程,下面方法可有效解决这个问题。
ren cmd.exe cnd.exe
运行bat文件方法:
cnd/c my.bat
法二:
ftype/?
assoc/?
cnd="C:\mytool\notepad2.exe" %1 %*
assoc .bat=cnd
---------------------------------------------------------------------
----006 真正的全屏打开网页
start "" "%systemdrive%\program files\internet explorer\iexplore.exe" -k "www.baidu.com
----007 进入一些特别的路径
我的电脑
start ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
网络邻居
start ::{208D2C60-3AEA-1069-A2D7-08002B30309D}
我的文档
start ::{450D8FBA-AD25-11D0-98A8-0800361B1103}
回收站
start ::{645FF040-5081-101B-9F08-00AA002F954E}
----008 禁用/解禁任务管理器
禁用:
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\system /v DisableTaskMgr /t REG_DWORD /d 00000001
解禁:
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\system /v DisableTaskMgr /f
----009 弹出光驱
mshta "javascript:new ActiveXObject('WMPlayer.OCX').cdromCollection.Item(0).Eject();window.close();"
----010 右键添加 "新建 zjw.bat" (不需重启)
reg add HKCR\.bat\ShellNew /v nullfile /f >nul
reg add HKCR\batfile /ve /d zjw /f >nul
----011 右键添加打开MS-DOS (不需重启)
reg add "HKCR\*\shell\ms-dos" /ve /d ms-dos /f
reg add "HKCR\*\shell\ms-dos\command" /ve /d "cmd.exe /k cd %%1" /f
reg add "HKCR\Folder\shell\ms-dos" /ve /d ms-dos /f
reg add "HKCR\Folder\shell\ms-dos\command" /ve /d "cmd.exe /k cd %%1" /f
----012 显示/隐藏扩展名
显示:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 00000000 /f
隐藏:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 00000001 /f
----013 显示/隐藏 文件
显示:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t reg_dword /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t reg_dword /d 1 /f
***第一句是显示一般隐藏文件,后两句加上就是显示系统隐藏文件
隐藏:将键值改“非“就可以了
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t reg_dword /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t reg_dword /d 0 /f
***刷新后就隐藏了
----014 用*.inf 实现重启
echo [version] > reboot.inf
echo signature=$chicago$ >> reboot.inf
echo [defaultinstall] >> reboot.inf
rundll32 setupapi,InstallHinfSection DefaultInstall 1 reboot.inf
del reboot.inf |
|