+ 1
Execute commands at the push of a button
I'm looking to learn how to execute terminal commands at the push of a button. What programming language would be best for learning to do that?
9 Antworten
+ 13
Oh, I see.
So you want to run the batch files from an Intranet site.
Here, try this:
https://stackoverflow.com/questions/18980957/is-it-possible-to-run-an-exe-or-bat-file-on-onclick-in-html
+ 8
Creating a batch file will accomplish this task.
Simply open a new text file, enter the commands you wish to run (each on its own line) and save the file with the extension .bat
This article may help you:
https://fossbytes.com/what-is-a-batch-file-in-windows-how-to-create-a-batch-file/
+ 8
well, I wouldn't recommend having a command such as that in a batch file, but the browser shouldn't care/be able to see what is in the batch file.
Anyway, glad I could point you in a(?) direction.
+ 6
Windows or Linux?
+ 6
And by push of a button. Do you mean like a key on the keyboard, or icon on the screen?
+ 1
Windows
+ 1
icon on the screen
+ 1
already made the .bat files, to many in to many different folders is the problem, I'm learning HTML and JS in hope of building a site to keep better track of things.
0
that does look like what I'm after, thanks, also looks like what I'm after may be impossible given they don't want browsers running "format c:"
I'll just have to try it.