Windows 11: Path variable problem

I just recently installed Rust and tried to create my first program.
When I run it like this: from my projects directory, then in my project directory I run rustc main.rs .\main.exe
I get this error message:
error: multiple input file name provided (first two filenames are 'main.rs' and '\main.exe')
I am unsure if my %path% variable for Rust is set correctly, when I checked my Environment variables I did not find an entry for Rust.
Any assistance would be appreciated.

I think I solved my problem, I forgot to compile the program.
Duh!!

2 Likes