0

I'm building an online batch tutorial and would like to have the windows command prompt as an active element in my page. I tried using html5 embed tag. but it says unsupported plugin. if it is possible with js or php PLEASE tell me.

Jam coders
  • 19
  • 5
  • 3
    You can't do that. You could write server-side code that runs arbitrary commands, but that's a giant security hole. – SLaks Feb 14 '16 at 03:47
  • 1
    a short answer is: no – user151496 Feb 14 '16 at 03:47
  • 1
    The long answer is also probably no. – AMACB Feb 14 '16 at 03:48
  • actually, if you want to do it for the sake of a doodling around and not having the ability to access it, you can run a windows 3.11 image in a dosbox for javascript https://sourceforge.net/projects/jsdosbox/ – user151496 Feb 14 '16 at 03:50
  • OK thanks. do you know what language it's written in and if html supports it. maybe I could simulate it that way. – Jam coders Feb 15 '16 at 06:35

1 Answers1

0

The answer is no, but you could emulate the functionality.

Take a look at CodeSchool, for example their Git tutorial. It is an interactive web application that responds to the commands you issue.

xmorera
  • 1,933
  • 3
  • 20
  • 35
  • is there something similar that is possible? – Jam coders Feb 14 '16 at 13:12
  • 1
    Well... Yes but huge security hole. You can set up so that your web app runs commands but it is like inviting people to run whatever they want: http://stackoverflow.com/questions/5565972/how-i-can-execute-cmd-command-in-c-sharp-console-application – xmorera Feb 14 '16 at 20:57