Look for the directory that contains the executable “gfortran.exe” and fill in that name in the command. I do not think “c:\users\pader\gcc” is the one you need, but I am not sure whether you need to add “bin” at the end or 'x86_64_W64-mingw32".
I certainly could have tried the statements, and I do respect you for saying so, but yesterday I crashed my system trying to get the compiler to run, and Microsoft repairing it, was busy a few hours, before it was running again.
I am grateful for your reply.
Supposing the path string is wrong. How do I get rid of it again later?
Using the “set” command to modify the “PATH” environment variable makes only temporary changes that are effective only for the current session of the command prompt. Once you close the command prompt window or restart your computer, the changes will be lost.
The path you added is wrong: it should have been “c:\users\pader\gcc\bin”, you doubled the “gcc” bit.
As for your computer crashing: that is a rather unusual occurrence. I would not have expected that, as the software you installed is not likely to do much in the foundations of the operating system.
C:>gfortran -c j:\x\testOne.f90
gfortran: error: j:\x\testOne.f90: No such file or directory
gfortran: fatal error: no input files
compilation terminated.
The system collapsing. It took hours to repair.
And I thought the automatic repair was jolly clever of Microsoft
“To be a programmer you must understand the basics of how your operating system works.” How well are you informed about how the engine of your car really works? I am no friend of Microsoft. Even the concept of “Windows” they borrowed from Xerox.
“At the very least the compiler is running now ” Of all the information that came my way yours was the only information that didn’t send me tail biting in circles.
@Patrick welcome to the Fortran discourse. I am happy that you were able to get the issue resolved. Please don’t forget to thank the people who helped you. Also a reminder that we have a code of conduct: https://fortran-lang.discourse.group/t/welcome-to-discourse, please follow it.
@Patrick , you will find in this community fans of Windows, Linux, macOS, FreeBSD and other systems. Although Fortran was born before all of them, it needs them to work. All these operating systems share some common concepts that must be learned to program in Fortran or whatever other language. There is a book about the history of Fortran subtitled “Abstracting away the machine”, but that is only an ideal that is never really achieved.