I'm working with an existing html/php web page that has about 7 links that call almost identical batch files to perform a series of steps, such as renaming a file and moving it to another location.
I'd like to use just a single batch file by passing a parameter from the web page to the batch file, and based on this value, will determine the new name and location for the file. The value of the parameters can be as simple as a, b, c, d, e, f, g; it's just a way for the batch file to know which link the user clicked on.
Currently I have a link such as:
I'd like to have:
pt.cmd /p='a'" (or however one would indicate a parameter)
How would I do this with html and/or php?
I started reviewing this post, http://www.experts-exchange.com/Programming/Languages/Scripting/AJAX/Q_28283413.html
, but in this case I don't want input from the user; instead the parameter will come from the particular link that the user clicks on.
I am very, very new to html and php and I'm learning, but not fast enough to complete this project on time. :-)