Use doskey in Windows for requesting your commandhistory. For that you first
have to create once a storage file in some directory as follows:
doskey /history > C:/history.txt
Then just use doskey command together with fidstr tofilter your history:
doskey /history | findstr "substring"
Use findstr in Windows withfollowing command line structure:
findstr [/I] [/S] "substring""regex_file_name"
/I Case-insensitive search.
/S Search files in subfolders recursively.
findstr /spin /c:"string" [files]
The parameters have the following meanings:
s = recursive
p = skip non-printable characters
i = case insensitive
n = printline numbers
And the stringtosearchforis the bit you put in quotes after /c: