View Full Version : Output DOS Commands (or batch files) to AMS4 Page (textBOx Object) Is it possible?
Martin_SBT
10-29-2003, 03:00 PM
Hi Guys
Unfortunately, i am not a VB or C++ coder at all! So, i am sking just in case one of you would know how i can do that, and if you have something already built that you would share with me! In my AMS4 project, i am firing up a batch file from a file\execute action and i would like to send the output of the DOS windows into a Textbox Object in my AMS4 Page! I have been looking for stuff on the net (http://www.visualbasicforum.com/t58293.html)
But i would really appreciate if one of you could help me out with that.
thanks
Martin
TJ_Tigger
10-29-2003, 03:50 PM
you can use the ">" in your batch to send the output to a file and then read that file into the text box object.
For instance
dir -B > files.txt
This will perform the dir command with a -B option (only lists names I think) and output that to a file.txt list. Then you could read that into a text box object
You can use a >> to append to the end of the file too.
Martin_SBT
10-29-2003, 06:43 PM
Guys
Thanks for the suggestions but that is not what i want to do. I want to output in real time what usually appears in the dos window, to my AMS Page.
Any takers?
Martin_SBT
10-29-2003, 06:47 PM
Here is why!
the dos command i am executing parse a database to replace some items and each time it gives the parse results for each part of the database it is searching. Doing this your way, my page seems to be frozen since nothing shows up in the dos window as i am redirecting its output to a text file! That's why , id'like to output in realtime the results into an AMS textbox object! Anyone can help me with that?
thanks
Martin
Brett
10-30-2003, 07:58 AM
Martin,
There is currently no way to capture the console output as far as I know. Doing that is possible with some fancy C programming, but I don't see how it would get the captured output to AMS40 even if you could do it.
Martin_SBT
10-30-2003, 09:10 AM
Thanks Brett
But there must be a way! Look at this: http://support.microsoft.com/default.aspx?scid=kb;en-us;278411
It explain how to do it using VBScipt or JScript. Since i am not a scripter nor a coder, i was wandering if one of you could help me implementing that into my project! AMS4 should be able to deal with VBScript and/or JScript right? So maybe using a web browser object....(?)
Please help
thanks
Martin
You can't parse the data with AMS, and get feedback from that?
Martin_SBT
10-30-2003, 09:32 AM
Hi Worm
No. Our Database is from the company called "Objectivity DB" and the exe (DOS executable) that i execute from my AMS4 project is from our developpers In Buffalo Grove. That exe can only be executed from the command line and does not return the parsing results into a text file.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.