Ask coding questions

← Back to all posts
.exe files
MicroSoftHelp (57)

I was wondering if there was a way to make it so you can run .exe files in this. For example, if something is downloaded how can I make it able to run.

Comments
hotnewtop
BD103 (139)

I'm not sure that's possible. Repl.it uses Linux servers, so they can't run .exe files, as those are Windows specific.

MicroSoftHelp (57)

@BD103 What files can they run?

BD103 (139)

Linux is weird. They don't have a standard executable file. Because of this, you can just use language specific files, like .jar. If you're using Python, try using the pyinstaller package. @OperationDemon

MicroSoftHelp (57)

@BD103 How can I use the pyinstaller package?

MicroSoftHelp (57)

@BD103 What i am looking for is an "application" to open up files

BD103 (139)

If you can find the command with shell, you could do something like this:

import os
os.system("python myfile.py")

That runs your python file, there are also alternatives for different languages.
@OperationDemon

Coder100 (18893)

i know it works for some applications, but not all @BD103

BD103 (139)

Not sure, I don't have any .exe files. :)
@Coder100

Coder100 (18893)

and in python:

import os
print("what exe to run?")

os.system("mono %s.exe" % input())
Coder100 (18893)

You can, we use mono.

mono main.exe

(this is a shell command)

RYANTADIPARTHI (6020)

I don't think they can run .exe files.