question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot run .exe files

See original GitHub issue

Here is a part of my settings.json

"code-runner.executorMapByFileExtension": {
        ".vb": "cd $dir && vbc /nologo $fileName && $dir$fileNameWithoutExt",
        ".vbs": "cscript //Nologo",
        ".scala": "scala",
        ".jl": "julia",
        ".cr": "crystal",
        ".ml": "ocaml",
        ".exs": "elixir",
        ".hx": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
        ".rkt": "racket",
        ".ahk": "autohotkey",
        ".au3": "autoit3",
        ".kt": "cd $dir && kotlinc $fileName -include-runtime -d $fileNameWithoutExt.jar && java -jar $fileNameWithoutExt.jar",
        ".kts": "kotlinc -script",
        ".dart": "dart",
        ".pas": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
        ".pp": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
        ".d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
        ".hs": "runhaskell",
        ".nim": "nim compile --verbosity:0 --hints:off --run",
        ".csproj": "dotnet run --project",
        ".fsproj": "dotnet run --project",
        ".exe": "cd $dir && $fileName"
    }

But when I right click on an .exe an click run code, nothing happens. What am I doing wrong ?

OS: Windows 10 64-bit VS Code: Version 1.25

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:37 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
Salil03commented, Aug 2, 2018

Ok. I will do that in some time. Thanks for your help.

0reactions
Salil03commented, Aug 9, 2018

I don’t think I have the knowledge to fix the bug. Sorry 😔☹️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot open EXE files - Windows Server | Microsoft Learn
Click Start, and then select Run. · Type "command.com" , and then press Enter. · Type the following command lines: · Type copy...
Read more >
Exe File is Not Opening: 6 Ways to Fix it [Force Launch]
If you can't run an executable file in Windows, the most likely cause is that there is an incorrect file association.
Read more >
Cannot Open .EXE Files in Windows 10 – Fixed
According to Microsoft experts, this problem occurs due to corrupt registry settings, or system issues due to virus infection or third-party ...
Read more >
Fix: Cannot Open Executable (.EXE) Files on Windows
Try running the executable file in compatibility mode. To do this, open the properties of the EXE file, go to the Compatibility tab,...
Read more >
How to fix .exe files not opening in Windows 10? - Auslogics
1. Check the system for malware. 2. Mend the .exe file association. 3. Change executable file parameters in the registry.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found