Can you be more specific in your question? What exactly doesnβt work? Can he not find the program, compile the compilation, etc.?
The only problem I see is that the command line cannot resolve the CL command. Try including the full path to the cl.exe binary. This is the appropriate path on my machine.
C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.exe
EDIT
When using a path environment variable, you must set it to the path, not to the application. Change your path code to
set PATH=%PATH%;C:\Program Files\Microsoft Visual Studio 9.0\VC\bin
Regarding the inability to load mspdb80.dll, I am worried that clutter with your environment variables may contribute to this problem. Reboot the cmd.exe shell and add the above line and try again. If you still receive an error message with mspdb80.dll, you may need to repair the installation of Visual Studio.
EDIT2
It definitely looks like the PATH environment variable is causing a mess in the boot path for mspdb80.dll. This thread has many solutions to this problem.
http://social.msdn.microsoft.com/Forums/en-US/Vsexpressinstall/thread/2a3c57c5-de79-43e6-9769-35043f732d68/
source share