Results 1 to 3 of 3

Thread: Returning a value from a Standard exec

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    103
    Is there any way to have a standard exec return a value? I made a program that detects whether there is a network connection present or not and it is going to be called from within a Rexx or Dos command file.

    pseudocode:

    If NetCheck.exe returns 1 then do (set of commands)
    else If NetCheck.exe returns 0 then do (another set of commands)

    ...so I would like to have NetCheck.exe simply return a value.

  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Posts
    239
    How about sending a value to a file that can then be opened and read by the DOS program?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    103
    I thought of that already.... was looking for a better way.

Posting Permissions

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



Click Here to Expand Forum to Full Width