(I don't follow So if you type the full path ~/Desktop/cc.txt then it will execute. Isn't that what I did when it wouldn't execute?)
I don't see anywhere where you actually tried to execute the cc command.
chmod only sets the x bits... it doesn't run the file.
I misunderstood you...thought you said to type the full path in the chmod command (which I had done).
I know chmod doesn't run the file, but how would I execute the cc command when it's still in .txt form? (I tried dragging the file into a Terminal window and hitting "Return, but with no luck.")