18

Is it possible to run a .exe file in Ubuntu in a script? For example a simple Matlab code like this:

system("dir/WAV2RAW.exe")
Melebius
  • 11,750
ASAD
  • 509

2 Answers2

37

I think you should use Wine.

sudo apt-get install wine
wine dir/WAV2RAW.exe

Or Mono if you know that exe is .NET application:

sudo apt install mono-runtime
mono dir/WAV2RAW.exe
N0rbert
  • 103,263
4

As mentioned in the comments this may be an XY problem

You could use 'sox' to convert from raw to wav file types:

sudo apt install sox

will install the program, then

sox --type raw <infile> --type wav <outfile>

would perform a simple conversion from the raw to wav formats

Charles Green
  • 21,859