What you really need is to figure out why you are getting that error in the first place. You need to figure which part of the build steps is trying to call cmd.exe and why is it falling. Most likely, either your Visual studio paths or your system paths are not properly set.
But to your direct question:
Assuming you are using Visual Studio ('build solution' sounds like it), try the following:
If you have .NET installed, find the path to your msbuild.exe and add that to your windows system path. MSBUILD should be able to your SLN file as argument.
If not, you have to add the low level tools to cmd line. Warning: This is usually 10 * harder then compiling in VS.
you first need to add your compiler path to your windows system path.
Find where your cl.exe is located (example, mine is located at: "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin")
Add that to your system path by going to:
Start -> My Computer -> [Left-Click] -> Properties -> Advanced -> Environment Variables
Find the PATH variable and add your cl.exe path to that.
open a command box and try cl.exe. But compiling is only part of it, you have to link, etc. If you never built on the command line before, there are a lot of steps.