Can't launch exe file from WSL2

I very new to WSL and bash and not that good with C++, so the solution might seem obvious. I have a bash script that compiles a series of files. It compiles well and I see the .exe file in the explorer window, but when I try to launch the .exe file it doesn't recognise it.

jonas@Lenovo-Yoga:/mnt/c/Flatscans/$ bash compilFlatScan.sh
RS232 compiled
commFlatScan compiled
commandes compiled
testFlatScan.exe created
jonas@Lenovo-Yoga:/mnt/c/Flatscans/$ testFlatScan.exe
testFlatScan.exe: command not found

It also doesn't launch when I try to execute it by clicking on it. I can't really find what I'm doing wrong. Thanks in advance for your help.

Upvotes: 1

Views: 2169

Answers (1)

Picaud Vincent
Picaud Vincent

Reputation: 10982

Did you try this ?

 ./testFlatScan.exe 

Upvotes: 2

Related Questions