Compiling .cu file

I haven’t had much luck with compiling .cu file using nvmex function in MATLAB 2009a, hence I decided to try using command prompt instead.
I type nvcc -o test test.cu in command prompt. The error message returned was "Cannot find compiler ‘cl.exe’ in PATH
Hence, I copied the file to the bin folder under Microsoft visual Studio 2009\VC\bin . The new error message is
nvcc fatal : No input file specified

How should I overcome this problem, and what cause ther error?

Thanks in advanced.