Hello Everyone

I am trying to delete an application entry from Program and Features in Windows 7 64-bit and the command works while I run it on command line but when I create a .cmd file, it gives the following error:

'■R' is not recognized as an internal or external command

I have never seen this before.

The command I am using is REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{GUID} /v DisplayName /f


Thanks in advance.

Answer Summary:
4 Comments   [ - ] Hide Comments


  • is this on the k1000?
    • Does it matter? I am testing it on a VM.
      • yes it does, the method of delivery could be the problem vs the script file itself
  • The exact command that I have pasted in my question works on the command line and when I copy and paste the exact same command in the notepad and save it as .cmd file, it doesn't. I don't know where the disconnect is and I don't understand how the platform matters. I am also doing it locally for now, not on the network, so the delivery isn't an issue.
  • I think that the curly brackets might have a special significance in batch files but I'm not certain.
  • Do people normally delete software items out of the registry rather than uninstalling them?
Please log in to comment

Answer this question or Comment on this question for clarity



Ensure that, "Encoding Type" is "ANSI" when you save the text file as .cmd

Answered 06/02/2014 by: jagadeish
Red Belt

  • Thank you so much. It worked!
    Can you please explain why this was required?
    Because usually when we save a text file as .cmd, we don't do it. I like to know the reason why I am doing what I am doing. Details will be greatly appreciated.
Please log in to comment