Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Consolify - convert VDF Apps to console Mode.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    West Yorkshire - UK
    Posts
    837

    Default Consolify - convert VDF Apps to console Mode.

    I quite like console mode apps, and it's frustrating that DAccess don't provide a "Convert to Console" button in the project options.

    So - I've started a project that allows you to create VDF Console Mode apps.
    See it being demonstrated here:
    https://dl.dropboxusercontent.com/u/.../consolify.swf

    Download it here:
    https://github.com/seanbamforth/Consolify

    All source included and dataflex native.
    Any suggestions or additions would be appreciated.

  2. #2
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    6,250

    Default Re: Consolify - convert VDF Apps to console Mode.

    To clarify, what sean has done is to magically allow VDF apps to be run from the command line, in the manner of the scriptable Unix (or dos) command shell programs. He hasn't magically re-created df2.3 console mode in vdf.

    A very useful technique when writing batch processes, or utilities that do background tasks, where you just need an exit code.

    Neat stuff. Freakishly Incredible stuff.

    I just read the code, and I have no reasonable clue how he figured that stuff out. More power to your elbow Seanyboy!
    Last edited by Michael Mullan; 8-Aug-2014 at 09:05 PM.
    Michael Mullan.
    Danes Bridge Enterprises.

    ++++++++++++++++++++++++++++
    There is just today. Tomorrow is a concept
    that is mostly theoretical. -- GM Wylie
    ++++++++++++++++++++++++++++

  3. #3
    Join Date
    Feb 2009
    Location
    Goteborg, Sweden
    Posts
    2,848

    Default Re: Consolify - convert VDF Apps to console Mode.

    I downloaded and had a look at it. And it does like something that can be very valuable to have, although I cannot think of something at the moment.

    But if the main purpose is to get exit codes from a background task why not use memory pipe, as is done in the COM Manifest Builder project? There calls is made to several DOS processes and then not only gets the exit code back but also the output from the process. The function is GetExternalProgramResult and it returns a string array as a ByRef value (the output) and also the exit code as an integer.

    But surely there must be more uses for what seanyboy has created, right?
    Nils Svedmyr
    RDC Tools International
    www.rdctools.com

    "Humor is reason gone mad"
    Groucho Marx

  4. #4
    Join Date
    Feb 2009
    Location
    Queens, NY, NY
    Posts
    6,250

    Default Re: Consolify - convert VDF Apps to console Mode.

    I'm thinking that it allows you to write VDF utilities that you can then include as part of a different set of batch files, or if you like working at the dos prompt you can use this to write the utilities that set up, for example, the beginning conditions for a test script.
    Michael Mullan.
    Danes Bridge Enterprises.

    ++++++++++++++++++++++++++++
    There is just today. Tomorrow is a concept
    that is mostly theoretical. -- GM Wylie
    ++++++++++++++++++++++++++++

  5. #5
    Join Date
    Feb 2009
    Location
    Goteborg, Sweden
    Posts
    2,848

    Default Re: Consolify - convert VDF Apps to console Mode.

    Thanks for the explanation!
    Nils Svedmyr
    RDC Tools International
    www.rdctools.com

    "Humor is reason gone mad"
    Groucho Marx

  6. #6
    Join Date
    Feb 2009
    Location
    West Yorkshire - UK
    Posts
    837

    Default Re: Consolify - convert VDF Apps to console Mode.

    The plan is to use it for general tools, automated builds, TDD and datafile conversion.
    Also package management.

    Pipes between multiple processes suffer from having having to write two different programs. You have to write the VDF program, the DOS program, and you've got to make sure they can talk to each other and they continue to talk to each other. That may be easy for others, but it's complexity I'd rather not deal with. Plus - I'm not hugely comfortable writing utilities in languages other than DF. That's a personal thing.

    Nils - There probably is a better way of doing this. I think it's a prerequisite of me posting anything here that -
    (a) someone else already did it better. (json & XML Parsers)
    (b) What appears to be an amazing utility to me is actually mundane, prosaic or unnecessary. (Coffescript preprocessor)

  7. #7
    Join Date
    Feb 2009
    Location
    Goteborg, Sweden
    Posts
    2,848

    Default Re: Consolify - convert VDF Apps to console Mode.

    Hi,

    Thanks for the reply. Please don't see my reply as I was trying to be negative - I'm impressed on what you've done!

    I was just trying to describe that I - at the moment - was confused and couldn't see how I should use it and needed help with ideas. What you have created is by no means mundane, and I'm sure we all are going to have great use for it!

    BTW, what did you mean by "Package Management"?
    Last edited by Nils G. Svedmyr; 9-Aug-2014 at 09:20 AM.
    Nils Svedmyr
    RDC Tools International
    www.rdctools.com

    "Humor is reason gone mad"
    Groucho Marx

  8. #8
    Join Date
    Feb 2009
    Location
    Goteborg, Sweden
    Posts
    2,848

    Default Re: Consolify - convert VDF Apps to console Mode.

    I might add that while developing the COM Manifest Builder project I tried to make an interface to the console, but I wasn't successful. So I am genuinely impressed with your work!
    Nils Svedmyr
    RDC Tools International
    www.rdctools.com

    "Humor is reason gone mad"
    Groucho Marx

  9. #9
    Join Date
    Mar 2009
    Location
    Edmonton Canada
    Posts
    722

    Default Re: Consolify - convert VDF Apps to console Mode.

    Hi Sean

    I just tripped over a YouTube video you did on Consolify.
    I found your posting here.

    I am curious to know, three years later, where you have found Consolify to be useful.

    Thanks
    RChi

  10. #10

    Default Re: Consolify - convert VDF Apps to console Mode.

    Great Stuff Sean,

    I remember writing some code for supporting console in the past, but can't find it.
    It certainly wasn't as full fledged as what you have here.

    Thanks!
    --
    Wil

Tags for this Thread

Posting Permissions

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