I have a page with several objects on it (couple drop down list and textboxes) and I would to to click a command button and A.) have it run my bat file, but B.) also really need to pass along some of the items being displayed in these varies objects.
Therefore command being executed might look like this "c:\my.bat IP username password" Could really use help on this one--thanks a lot in advance.
Regards, Craig.
Want to also clarify further. I was searching through the forum and found the exec() function that looks promising, BUT I'm wanting to execute this bat file that's on my workstation and not on my Server--wasn't sure that was clear. Therefore from my workstations I would open a browser, probably IE, go through my intranet to view this page and click on the button that will activate a bat file locally. If your wondering the advantage to this it will be passing variables along with it that will also be on the page--once I figure out how to do that too.
Luckily this is not possible with 'normal' html. The closest you can get is to download the bat file to the client and have them use the 'open from location' option.
That it is not an acceptable answer. I Do know there is some way of doing so. Also this is bat executes a java application that my whole office uses everyday, so it would make any sense every time they wanted to go into it to redownload. The time it takes to do that doesn't make it feasble, not to mention it complicates the abililty for me to pass variables with.
Not acceptable... giggle.
There is only one way to do anything non-browser on the client, and that's through MS's Active-X, and to do anything more than standard html things, you need to certify the apps, and that can be expensive.
O.k. that's an answer. I was following the MS path at the same time. Invoking Windows Host Scripting through VBS seems promising. Can generate a personal certificate, being that this real just run on my Intranet it should be fine. Kind of sad that I have to go back to the MS way of doing things. Thanks any way....
MS are the only company stupid enough to create such huge security holes. 🙂