I don't think that I said anything about making two variables for the 
parameters but I'll happily take the credit <g>. I expect all that's happened 
is that you've now got the spacing correct.

I would love to know why this method works, though. I can't find any difference 
between one variable and two (or more!) concatenated ones or the 
straight-forward command. 'Tis very strange, methinks, but no problem. Perhaps 
even clearer to see the components separately, though.

Regards,
Alastair.

  ----- Original Message ----- 
  From: [EMAIL PROTECTED] 
  To: RBASE-L Mailing List 
  Sent: Friday, July 18, 2008 3:46 PM
  Subject: [RBASE-L] - Re: Launch command


  Thanks all,
   I tried several versions, enclosing in '    ' and various spaces.  Adding or 
removing spaces did 
  make it behave differently, but alas none would work as needed.  .

  However...

  I checked Alastair's recommendation again and found that it does work!   I do 
not know why,
  but I had first created the parameter variable all with one string.  But when 
I actually made each
  parameter a variable, added the pipe and then used the combination as he 
shows, darn if it did not work!
  Interesting!  

  Thanks Alastair.

  -Bob

  --
  Thompson Technology Consultants 
  LaPorte, IN 46350 
  219-363-7441

    -------------- Original message -------------- 
    From: "Dawn Hast" <[EMAIL PROTECTED]> 


    >>It appears that the LAUNCH command syntax passes only one parameter.<<

    I don't think that's necessarily true.  This works and has multiple 
parameters:

    launch 'f:\rbfiles\acrobat\acrobat.exe| /p /h 
f:\rbfiles\webwinddirection.pdf'

    I do remember having some trouble when the spacing wasn't just right - 
there should be no space between the exe and the pipe symbol, and one space 
between the pipe and the first slash for the first parameter.
      -------------- Original message from [EMAIL PROTECTED]: -------------- 


      Alastair,
       Thanks for the input.  I tried that approach and was unsuccessful.  It 
appears that the
      LAUNCH command syntax passes only one parameter.

      I ended up dynamically writing a batch file and then used LAUNCH 
filename.bat.
      It works OK.

      Thanks again.

      --
      Thompson Technology Consultants 
      LaPorte, IN 46350 
      219-363-7441

        -------------- Original message -------------- 
        From: "Alastair Burr" <[EMAIL PROTECTED]> 

        Try it this way:

        SET VAR vLaunchProg TEXT = NULL
        SET VAR vLaunchParams TEXT = NULL
        SET VAR vLaunch TEXT = NULL

        SET VAR vLaunchProg = '[drive]:\[path]\winscp.exe'
        SET VAR vLaunchParams = '/console /script=test.txt|w'
        SET VAR vLaunch = (.vLaunchProg & '|' & .vLaunchParams)

        LAUNCH .vLaunch

        I have never found any reason why this should work (when the obvious 
doesn't) but it always does for me.

        Regards,
        Alastair



          ----- Original Message ----- 
          From: [EMAIL PROTECTED] 
          To: RBASE-L Mailing List 
          Sent: Thursday, July 17, 2008 6:34 PM
          Subject: [RBASE-L] - Launch command


          Can you pass two parameters with the launch command?
          So far the below does not work.

          launch winscp.exe|/console /script=test.txt|w

          Thanks!
          -Bob

          --
          Thompson Technology Consultants 
          LaPorte, IN 46350 
          219-363-7441

No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.5.0/1557 - Release Date: 17/07/2008 05:36
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.5.1/1559 - Release Date: 17/07/2008 18:08

Reply via email to