How Do You Configure The Compiler From A Second Drive?

I am using Visual Studio Code with the C/C++ extension. I had to install Visual Studio Community and Code on my standard hard drive (J:) as my SSD (C:) did not have enough space. The issue I am running into is when I run the terminal is Code it tries to compile out of the C: drive, how do I get it routed to compile out of the J: drive?

Right clicking the file and open in terminal will open the terminal in that directory.

Though to answer your question to change drive in cmd you just type the drive letter followed by : e.g.

J:

Dan, thank you very much I will give that a try.