Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I run a program or batch file on the client side?

How can I run a batch file on the client side? An exe file? Just to open pre-installed program in client side?

[Edit]

Regarding ActiveX, I tried

    var activeXObj = new ActiveXObject("Shell.Application");
    activeXObj.ShellExecute("C:\\WINDOWS\\NOTEPAD.EXE", "", "", "open", "1");

but this doesn't work. Any suggestions?

like image 440
Ahmed Atia Avatar asked May 18 '09 13:05

Ahmed Atia


1 Answers

From Javascript? You can't. It's a security risk. Think about it - would you want every website to be able to run programs on your PC?

like image 125
pjc50 Avatar answered Sep 30 '22 17:09

pjc50