Ask coding questions

← Back to all posts
How to run .exe files with bash or .replit?
iocoder (187)

The title says it all, the repl below is what I'm trying to run, or at least the .exe file.

Answered by Coder100 (18089) [earned 5 cycles]
View Answer
Coder100 (18089)

Assuming it's like C# or something, maybe try:

language = "cs"
run = "mono main.exe"

mono can run exe files iirc, and the c# language is already configured to do this!

patro2355 (0)

how to i run Istall_valorant.exe on my chromebook with this because I dont know how to

iocoder (187)

@patro2355 you can't install.exe files on chromebooks

kmerchgaming (0)

@patro2355 You can. You need Linux on your chromebook, then install wine, and then run wine [filename].exe in the linux terminal.

Bookie0 (6260)


from a similar question to yours, I found this:

so these repls are all running the Linux kernel. Linux is *nix system, just like the mac you said you use in the comments. neither of them are unable to run .exe files natively
if you want to run .exe files I would recommend looking into wine. in a sentence, it gives you a compatibility layer for running Windows programs on your Mac or Linux computer.
if you are trying to execute some windows executable file, I would just recommend installing wine on your mac, and running the executable with wine. (there are a lot of good tutorials online for this)
I am not sure why you would need the executable file in the repl you gave us. running it in that python repl is pretty much nearly impossible for all practical purposes, so I would recommend finding an alternate solution if it contains some code you want to run.

(From here

Maybe it can help you! :)

iocoder (187)

@Bookie0 no, I just want to run a .exe file in a repl without the c# file

Bookie0 (6260)

ah, hum ok then, good luck! @ridark

iocoder (187)

nvm ill just do it the easy way @Bookie0

Bookie0 (6260)

ok cool! Glad that it helped you! :) @ridark