Run batch file by clicking on button

C

Carlos R.

Is there a way to run a batch file by clicking on a button and supply the
needed info for the batch file from a textbox? I have a batch file that
requires info via %1. So I would like to create a textbox. When a user enters
info into the textbox and the click on the button next to the textbox and
batch file will execute and pick up the need info from the textbox. Is this
possible and how? Or can it be done through another method?
 
K

Kevin Spencer

A batch file is simply a series of Command-Line commands which runs in a
Console on the local machine. That said, a web site is not on your local
machine. It is somewhere else in the world. Can you run a batch file on my
machine? Can you even open a Console window on any machine but yours? So,
no, it is not possible to run a batch file from your web site. If you can
tell us what this batch file is supposed to do, I believe we can come up
with some solution using ASP, PHP, or some other server-side web programming
technology, to accomplish the same goal.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 
C

Carlos R.

Kevin,

I have some batch files that install and uninstall the SMS 2.0 client from
workstations remotely using PSEXEC and some SMS executables. What I would
like to do is create a web page with a box where a Help Desk technician can
enter a workstation ID and then click on a button. After clicking on the
button the scripts will then perform the function of either uninstalling or
installing the SMS Client depending on which button they clicked.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top