No, the cmd.exe file is not a virus. It's the executable file for Command Prompt, which opens the command window. However, beware of viruses masquerading as the cmd.exe file.