September 19th, 2017

The NET HELPMSG command will decode Windows error codes, at least the simple ones

A quick and dirty way to convert Windows error codes to strings is to use the NET HELPMSG command.

C:\> NET HELPMSG 2

The system cannot find the file specified.

C:\> NET HELPMSG 8242

An invalid dn syntax has been specified.

The command is not infallible, however.

If you pass a message with an insertion, such as ERROR_WRONG_DISK, then instead of getting

The wrong diskette is in the drive.
Insert %2 (Volume Serial Number: %3) into drive %1.

you get¹

C:\> NET HELPMSG 34

34 is not a valid Windows network message number.

More help is available by typing NET HELPMSG 3871.

Still, it’s better than nothing.

¹ As a bonus insult, if you type the suggested command, you get this:

C:\> NET HELPMSG 3871

*** is not a valid Windows network message number.

Yeah, um, that really didn’t tell me anything new.

Author

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

0 comments

Discussion are closed.