Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    173

    Output DOS Commands (or batch files) to AMS4 Page (textBOx Object) Is it possible?

    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

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    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

  3. #3
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    You can use a >> to append to the end of the file too.

  4. #4
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    173
    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?

  5. #5
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    173
    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

  6. #6
    Join Date
    Jan 2000
    Posts
    2,002
    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.

  7. #7
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    173
    Thanks Brett

    But there must be a way! Look at this: http://support.microsoft.com/default...b;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

  8. #8
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    You can't parse the data with AMS, and get feedback from that?

  9. #9
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    173
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts