compilation error - vcvars64.bat not found

I just installed CUDA v10.2 on Windows 10, together with Visual Studio 2019 (community version). I have been able to build and run the deviceQuery sample using the VS solution file.

However, when trying to compile my own cuda code (using the command nvcc fileName.cu from command prompt) I get the following error message:

nvcc fatal : Microsoft Visual Studio configuration file ‘vcvars64.bat’ could not be found for installation at ‘C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/SDK/ScopeCppSDK/vc15/VC/bin/…/…’

Does anyone know what this is about or what to do about it?

I use an older version of Visual Studio and build only from the command line, never with the IDE. I added the location of vcvars64.bat to my PATH environment variable.