Suppose I have a large number of files in a directory with the .txt extension.

How can I change the extension of all these to .c?

I KNOW THAT ' ren *.txt *.c ' works from command promt but it did't work from power shell and for terminal.

please help!