Ask coding questions

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

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

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
XDiscordBot
iocoder
Comments
hotnewtop
Coder100

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

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

patro2355

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

iocoder

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

kmerchgaming

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

SuperGamer1

@kmerchgaming Hello, how do you get wine on replit?

Bookie0

Hi!

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

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

Bookie0

ah, hum ok then, good luck! @ridark

iocoder

nvm ill just do it the easy way @Bookie0

Bookie0

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