I want to specify a custom command prompt when I launch a console. E.g Windows cmd.exe.
I am using the /K command line parameter in the shortcut that launches the console:
%SystemRoot%\system32\cmd.exe /K myprompt.bat
myprompt.bat contains the following lines:
prompt $d $t$_$p$g
cls
When I issue the prompt
command manually in the console window, the prompt appears like this:
However, if I execute myprompt.bat (either manually, or using the /K command line parameter), I receive the following error:
What am I doing wrong?