However, it returned "Not recognized as a program or batch file that can operate internal or external commands." Then I set a path of jc.cmd on the control panel and still the command prompt returned the same error.
Try naming your batch file "jc.bat" instead of "jc.cmd" and be sure to add the directory that it is located in to the path. You also need to be sure that you are changing the path so that it persists from one instance of the command window to the next.
I renamed my batch file as "jc.cmd" and checked that I added the directory where the batch file is located, but it did not work. I am sorry but I could not understand what you meant by "You also need to be sure that you are changing the path so that it persists from one instance of the command window to the next."
I tried to open the batch file "jc.cmd" by typing "start jc.cmd" on the command prompt after setting the current directory but it returned, "file not found." The files on other folders such as "FibonacciElement.asm" in the D: drive was successfully opened in the same way. So does it have something to do with C: drive?
Don't call the batch file ".cmd". Use a ".bat" extension.
When you change the PATH environment variable, the default is that it changes just for the current instance of the Command Window. The next time you open a Command Window it will be using the original PATH. There is an option to change the PATH for future instance of the command window as well.