Discussion:
Invalid macro definition on shell startup
(too old to reply)
Rob Stivers
2020-05-14 21:04:05 UTC
Permalink
Seeing this on cmd.exe startup.
Is there a startup file I'm missing?

Microsoft Windows [Version 10.0.18363.836]
(c) 2019 Microsoft Corporation. All rights reserved.
Start c:/scripts/bat/doskey.cmd
End c:/scripts/bat/doskey.cmd
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.
Invalid macro definition.

C:\>
JJ
2020-05-15 02:53:43 UTC
Permalink
Post by Rob Stivers
Seeing this on cmd.exe startup.
Is there a startup file I'm missing?
Type: cmd /?
Herbert Kleebauer
2020-05-15 06:00:20 UTC
Permalink
Post by Rob Stivers
Seeing this on cmd.exe startup.
Is there a startup file I'm missing?
Microsoft Windows [Version 10.0.18363.836]
(c) 2019 Microsoft Corporation. All rights reserved.
Start c:/scripts/bat/doskey.cmd
End c:/scripts/bat/doskey.cmd
Invalid macro definition.
From "cmd /?":

If /D was NOT specified on the command line, then when CMD.EXE starts, it
looks for the following REG_SZ/REG_EXPAND_SZ registry variables, and if
either or both are present, they are executed first.

HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun

and/or

HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
Herbert Kleebauer
2020-05-15 06:02:46 UTC
Permalink
Sorry, didn't see that it was already answered by JJ.

Loading...