Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2005
    Posts
    222

    Command Line in runtime?

    Hi how can I send linecommand to an Ams Ap in runtime?

    Is there a way can someone send me the basic code please?

  2. #2
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244
    You mean from another AMS application?

    Here's how you can pass command line arguments from one AMS.exe to another:

    Using the built in global variable _CommandLineArgs, you can then retrieve the args in the second AMS.exe. This allows you to pass any argument to the second exe file.

    In the following example, passing a 'page number' as an arg - ie:

    In AMS_1.exe use the following Action to run AMS_2.exe
    File.Run("AutoPlay\\Docs\\autorun.exe", "Page3", "", SW_SHOWNORMAL, false);

    In AMS_2.exe you can use these Actions to make a page jump to "page 3"
    Page.Jump(_CommandLineArgs[1]);

    Of course, this can be adapted to suit.
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

Similar Threads

  1. INFO: JET 4.0 SP7-SP8 Runtime Notes
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 11-28-2003, 08:34 AM
  2. INFO: Microsoft Data Access Components 2.8 Runtime Notes
    By Desmond in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 11-28-2003, 08:20 AM
  3. INFO: Visual C++ 6.0 (SP4) Runtime Support Module
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 12:53 PM
  4. INFO: DCOM 95 1.3 Runtime Support Module
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 12:38 PM
  5. INFO: MDAC 2.7 Runtime Support Module
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-17-2002, 03:55 PM

Posting Permissions

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