I have a simple batch file sitting in my windows system –
@echo off
echo %1 >> %2
This batch file takes two arguments, 1st is a string and second is a filename. It appends the passed string to the file.
Its straightforward to execute this batch file from command line, but I need to execute this from GUI.
Is it possible to execute this batch file from a browser? Can I write a simple HTML file which accepts two arguments and execute this batch file on pressing a button?
Are there any other ways to create a simple GUI for executing this batch file?
Its not possible to run a command line call from javascript within your webbrowser, this is due to security risks.
You could however use multiple other methods. If you know any Java you could create a very simple Java program using a Swing interface which makes a call to the command line. You could also choose to run a php page on your localhost, this would allow you to have a html front end in your browser which sends a request to your server which could then make the call for you.