Problems running on VSCODE

Asked

Viewed 986 times

-1

I am able to compile my file in . C, it is written correctly (it is a simple Hello World), but when I run it, it appears this error message, it finds the.exe file, but fails to run it. I did everything right in the installation of VSCODE and the Mingw compiler, but it does not run at all. It asks to type ". file.exe" however this only serves on Linux and does not serve for my Windows 10. Does anyone know how to solve? I suspect it is something with Windows Super Shell

-------- Response from the terminal below --------------

PS C: Desktop Users Language > test.exe

test.exe : The term 'test.exe' is not recognized as cmdlet name, function, script file or operable program. Check the spelling of the name or, if a path has been included, see if the path is correct and try again. In line:1 character:1 + test.exe + ~~~~~~~~ + Categoryinfo : Objectnotfound: (test.exe:String) [], Commandnotfoundexception + Fullyqualifiederrorid : Commandnotfoundexception

Suggestion [3,General]: The test.exe command was not found, but exists in the current location. By default, Windows Powershell does not load commands from the current location. If you trust this command, type: ". test.exe". See "get-help about_Command_Precedence" for more details.

1 answer

0

Well, in my case I am using Win10 and Windows Defender accuses viruses when running any .exe. I simply deactivated Windows Defender, rewrote the command to stop generating . exe and when running use . before the file name. I think this may be your problem, if it is, it would be better to use the same default prompt.

  • Yes, sometimes when I run on the Vscode terminal, Avast says it has virus(?) I did not understand this kkkkk, but anyway. When I used the standard prompt (even with ' . " ), I got the message "THIS APPLICATION CANNOT RUN ON YOUR PC, To find a version for your PC, see the software provider"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.