Excellent suggestion on the batch test!   

I did this and see that all the parameters are being passed, but not quite 
correctly. 



The parameters are sent as this: 



-0 "Test.dat" -r -S "*SRA" 192.168.0.83:1000 



but the batch file displays that the double quotes got misplaced.  It reads: 



"-o "Test.dat" -r -S "*SRA 192.168.0.83:1000 



For some reason the last double quote located after SRA is being pushed to the 
front of 

the parameter string.  Or at least that is the way the batch file is reporting 
it as such. 



Thanks again.  It is pointing me to the issue anyway. 



-Bob 





----- Original Message ----- 
From: "Dave McCann" <[email protected]> 
To: "RBASE-L Mailing List" <[email protected]> 
Sent: Wednesday, April 13, 2011 4:54:44 PM 
Subject: [RBASE-L] - Re: Launch Question 

Bob: You CAN use launch to run EXE files and parameters, I do it with a text 
editing program and pass the filename for it to open as a parameter.   You 
didn't say what exactly happens so I assume you just see nothing going on? 

One simple thing to check is the path of your EXE, is it in the directory where 
your database resides?  Perhaps there is trouble finding the EXE file.   If you 
launch without parameters what happens?  Does the EXE run? 

Another thing you might do is setup a simple batch file such as: 
rem TEST.BAT with parameters 
@echo off 
echo beginning of test 
echo %1 
echo %2 
echo %3 
echo %4 
echo %5 
echo end of test 
pause 

Use the batch file name in place of the EXE in your launch and it will display 
what parameters are getting passed to the batch file which might help you find 
out if one of the parameters is not getting passed as you expect (like the 
quotes). 


On 4/13/2011 1:36 PM, [email protected] wrote: 

-0 "Test.dat" -r -S "*SRA" 192.168.0.83:1000 



but the batch file displays that the double quotes got misplaced.  It reads: 



"-o "Test.dat" -r -S "*SRA 192.168.0.83:1000 



For some reason the last double quote located after SRA is being pushed to the 
front of 

the parameter string.  Or at least that is the way the batch file is reporting 
it as such. 



Thanks again.  It is pointing me to the issue anyway. 



-Bob 





----- Original Message ----- 
From: "Dave McCann" <[email protected]> 
To: "RBASE-L Mailing List" <[email protected]> 
Sent: Wednesday, April 13, 2011 4:54:44 PM 
Subject: [RBASE-L] - Re: Launch Question 

Bob: You CAN use launch to run EXE files and parameters, I do it with a text 
editing program and pass the filename for it to open as a parameter.   You 
didn't say what exactly happens so I assume you just see nothing going on? 

One simple thing to check is the path of your EXE, is it in the directory where 
your database resides?  Perhaps there is trouble finding the EXE file.   If you 
launch without parameters what happens?  Does the EXE run? 

Another thing you might do is setup a simple batch file such as: 
rem TEST.BAT with parameters 
@echo off 
echo beginning of test 
echo %1 
echo %2 
echo %3 
echo %4 
echo %5 
echo end of test 
pause 

Use the batch file name in place of the EXE in your launch and it will display 
what parameters are getting passed to the batch file which might help you find 
out if one of the parameters is not getting passed as you expect (like the 
quotes). 


On 4/13/2011 1:36 PM, [email protected] wrote: 




My day to ask questions!   I need to launch an external program with 
parameters.  Here is my code: 



set var vLaunch = 'HTTPGET.exe' 
set var vParameters = '-0 "Test.dat" -r -S "*SRA" 192.168.0.83:1000' 
set var vLaunch = (.vLaunch  & '|' & .vParameters & '|W') 



Launch .vLaunch 





It does not work.  Are the double quotes allowed in the parameters? 



Any other thoughts? 



Thanks again, 



-Bob 





Reply via email to