Error spawning 'C:\Windows\System32\cmd.exe'

I’ve found a number of references to this error googling but haven’t been able to solved the problem. Most common solution is to add
$(SystemRoot)\System32
$(SystemRoot)
$(SystemRoot)\System32\wbem
to VC++ Directories list under Options in VS

I’m running

  • Windows 7 64-bit
  • Visual Studio 2008 with updates
  • installed CUDA 4 RC2 plus related new packages

Trying to build exercise.cu that comes from a CUDA course.

I don’t think this is a CUDA problem and is more likely a combo VS and Win7 but any assistance appreciated.

Can’t build bandwidthTest.sln that is part of the distribution package either, same problem. I assume this will be a problem for any sample that wants to open cmd.exe

Contact Microsoft Support. I think they forgot to ship DOS…

Why do you say that?