Cmd issue!

Hello everyone. I just opened my command prompt to type the command dir/s, and when I execute the command, I receive this message: the message text associated with number 0x2331 cannot be found in the application file.

It is therefore impossible to execute any command..

I look forward to your solutions with great pleasure :)

3 answers

  1. Hello,

    Maybe an environment variable has been lost.
    Type the following command: echo %path%

    In output, you should have at least this (there may be more depending on the installed components):
    C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem

    If the command echo %path% doesn't work, we can access the environment variables in the advanced system settings.
    1. I understand what you're saying :). What should we do next ^^?
    2. Which version of Windows is it?
    3. Windows 7 64-bit
    4. Did the echo command work?
      If the command prompt is run as an administrator, is the problem the same?
  2. The command worked. Yes, even as an administrator there is the issue.
    1. You can try to check the integrity of Windows files with the following command as an administrator:
      sfc /verifyonly
      Hopefully, this command works...

      You can also try to create a new text file on the desktop, for example. Inside, put the following 2 lines:
      dir/s
      pause
      Save the file by adding the file extension .cmd (instead of .txt).
      Double-click on the file to see if you still get the same error message.

      I think I've covered all the ideas I had... just one more to finish. If the problem appeared recently, you can try to perform a system restore to a date before the problem.
      1. For the first technique: "Windows Resource Protection found integrity violations. Details are provided in the CBS.log windir\Logs\CBS\CBS.log. For example C:Windows\Logs\CBS\CBS.logs"

        I tried this command and it tells me: 3The message text associated with the number 0x3 is not found in the message file for system. --'
      2. To try to repair, use the following command:
        sfc /scannow
        Always as an administrator.