1

I would like to run the command python abc.py in the windows command prompt when the button on html page is clicked.The python file is located at C:/abc.py> I would like to know how to code the html page to do this process.Thank you for the help.

pratt
  • 53
  • 2
  • 6
  • You want to run "potentially" malicious code on a button click?! This would be a ridiculous security issue - http://stackoverflow.com/questions/4215339/run-cmd-from-browser-by-js – Nick R Jun 20 '13 at 15:52
  • Its just a basic python hello world script.I would like to know if there is any way to do it using html button – pratt Jun 20 '13 at 15:59
  • It doesn't matter what script etc it is, it's a browser security issue. Which is why something like `Open Me` doesn't work. – Nick R Jun 20 '13 at 16:01

1 Answers1

0

I believe the correct answer is you cannot. Feel free to let me know otherwise if you find out a way to do it.

Samuel Reid
  • 1,756
  • 12
  • 22