注册表操作命令和自定义cmd窗口

时间:2024-09-07 08:08:13

REM @echo off
REM cls
REM echo Microsoft Windows 7
REM echo ------------------------
REM echo Welcome to 石宣学堂
REM echo 计算机相关课程讲解
REM echo -------------------------
REM echo 日期:%date% 时间:%time%
REM echo -------------------------
REM title sxhall
REM color f0
REM @echo on

REM reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RADAR

REM reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v baidujingyan /t REG_SZ /d c:\windows\system32\notepad.exe /f

REM reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v baidujingyan

REM reg export HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run F:\1.reg

REM reg import F:\1.reg

REM reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\*

reg add "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v AutoRun /t REG_SZ /d c:\Windows\zzz.bat /f

rem reg delete "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v AutoRun