Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

339
Views
possible to run exe files in ReactJS?

I have a question, I made a Game Launcher for my Unity game with ReactJS, is it possible to run the game ( an exe file) when you click on play?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I'd suggest you should do it with NodeJS, as it will give you much more control. Invoke an API Call to your local NodeJS script

ReactJS

useEffect(() => {

   fetch(NODE_URL + "/execute-binary")
     .then(response => response.json())
     .then(data => console.log(data));

}, []);

Node Script:

var exec = require('child_process').execFile;

var funToExecuteBinary = function(){
   exec('gamelauncher.exe', function(err, data) {  
        console.log(err)
        console.log(data.toString());                       
    });  
}

app.get('/execute-binary', function(req, res) {
    funToExecuteBinary();
    res.send('Game launcher executed');
})
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!