DIVANSHU GUPTA
DIVANSHU GUPTA

Reputation: 87

'.' is not recognized as an internal or external command windows 10

after compiling files using gcc on windows 10 while executing using ./a.out says '.' not recognised.

I have already set gcc path in environment

Upvotes: 6

Views: 11850

Answers (2)

Lydia halls
Lydia halls

Reputation: 682

in windows use : .\ in mac use : ./ Hope it will help

Upvotes: 12

Norbert Bicsi
Norbert Bicsi

Reputation: 1568

The ./a.out command would work on a linux system. Here is a good explanation of how and why that works.

As the message was saying the . command does not exist in the windows command line.

On windows just type the name, a.out of your file and hit return. If your application was properly built and is executable, it should run without any problem. Otherwise it will try to open it with the default application for that extension.

Upvotes: 2

Related Questions