[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Call system using...
> Background: SQRW 3.0.7.1 for Sybase. OS = Windows 95.
>
> This is how I'm doing it:
> begin-report
> let $command = 'c:\path...\sqrwt c:\path...\report.sqt
> user/password -Vserver -DBdatabase -KEEP'
> call system using $command #status
> end-report
This program is looks correct, but now that you mention it I belive it's not
possible to run 16-bit SQR for Windows twice at one time. Check your release
notes to see if they mention that problem.
I was able to do the above sucessfully using the 32-bit version (SQRW
4.0.3).
> The $command-string can be executed from the start|run-dialog.
> I've also tried to write "let $command = getenv('c:\path...\sqrw
> c:\path...\report.sqt user/password -Vserver -DBdatabase -KEEP')", but
> then $command will be blank.
If you are trying to run an "internal" dos command or a .bat file, you need
to use getenv to look up the path for command.com, something like
let $command = getenv('COMSPEC') || ' /c dir'
call system using $command #status
If you are running a binary like sqrw.exe, you shouldn't need "getenv".
Nathan
----------------------------------------------------------------------------
Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server)
nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/