After I changed my directory to /bin, It fixed the .bat problem, but it says it couldn't find my .cpp I made this is what it says
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
C:\Program Files\Microsoft Visual Studio 9.0\VC>cl samplee.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
samplee.cpp
c1xx : fatal error C1083: Cannot open source file: 'samplee.cpp': No such file o
r directory
C:\Program Files\Microsoft Visual Studio 9.0\VC>
I opened a project called "samplee.cpp" in a new file (as you see)
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
C:\Program Files\Microsoft Visual Studio 9.0\VC>cl samplee.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
samplee.cpp
c1xx : fatal error C1083: Cannot open source file: 'samplee.cpp': No such file o
r directory
C:\Program Files\Microsoft Visual Studio 9.0\VC>cd bin
C:\Program Files\Microsoft Visual Studio 9.0\VC\bin>cl -GX samplee.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9035 : option 'GX' has been deprecated and will be re
moved in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
samplee.cpp
c1xx : fatal error C1083: Cannot open source file: 'samplee.cpp': No such file o
r directory
C:\Program Files\Microsoft Visual Studio 9.0\VC\bin>
So it says the same thing in both directories. BTW what is "EHsc"? my guide told me to run it -GX