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

When I try to run a program on SciTE, I get the error: '.' is not recognized as an internal or external command,operable program or batch file.
I have seen other problems like this, but I do not know if a file is missing or something else since '.' is the thing that is not recognized.
How can I fix this?
Last edited on
Use quotes:

"./myprogram.exe"
What do you mean by that?
Your question was ambiguous - I have no idea where that error is coming from or what you did to cause it. I assumed it came from the Windows console, as that is the only place I have ever seen that error message before, so I gave you advice on how to fix it.

Could you be more specific? Where is that error coming from and what did you do to cause it?
I downloaded Dev-C++ 5.4.0 and created a PATH variable with the value C:\Program Files (x86)\Dev-Cpp\MinGW64\bin so I could compile c++ in SciTE. I wrote a short code that outputs a number to test it out and it compiles just fine, but when I try to run the program, it just gives me the " '.' is not recognized... " error.

1
2
3
4
5
6
7
8
9
10
#include <iostream>

int main(){
       using namespace std;
       int num;
       cout <<"Enter a number: ";
       cin >> num;
       cout >> num;
       return 0;
}
How do you run the program?
closed account (48T7M4Gy)
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
using namespace std;

int main()
{
    int num;
    cout <<"Enter a number: ";
    cin >> num;
    cout << num;
    return 0;
}
Topic archived. No new replies allowed.