Mike,
Following from LAUNCH help. Maybe the "|W' option "wait until finihed" option
is what you need.About the LAUNCH Command LAUNCH command is used to execute (or
LAUNCH) another application or process, from within R:BASE eXtreme for Windows.
Based upon the extension for the FileName, a corresponding program associated
to it within Windows will open when launching the file. For example, setting
FileName to 'README.TXT' will invoke the Windows NotePad when launched. If a
full path is not specified, the current search path is used. The LAUNCH command
allows for command line parameters to be specified that will be recognized by
the program being launched. The launched application will start in the same
directory as the executable file or in the directory referenced, if specified.
The LAUNCH command also allows you to use a "Wait Until Finished" option to
specify whether or not you want R:BASE to sleep while the launched program
executes or continue running. If the "Wait Until Finished" parameter "|W",
(e.g. pipe and W with no space) is added to the LAUNCH command, R:BASE will
sleep until the launched process completes. If the "Wait Until Finished"
parameter "|W" is not specified, the launched process is executed in its own
thread, and the R:BASE will continue to execute. The number of pipes needed
depend on the last part of the LAUNCH command being used. If only a file is
being launched and no addition portions of the LAUNCH command are being used,
the pipe characters Jim Bentley,
American Celiac Society
1-504-305-2968
From: Michael J. Sinclair <[email protected]>
To: RBASE-L Mailing List <[email protected]>
Sent: Friday, July 17, 2015 6:44 PM
Subject: [RBASE-L] - Re: Code quit working
I think I may have found a partial solution.In my code, I erase the file after
I create it. It seems like the erase command was firing even before the file
was finished be created and launched, even though the erase command came after
the launch command.I moved the erase command to the top of the code and now it
works.Comments??Mike
From: MikeB <[email protected]>
To: RBASE-L Mailing List <[email protected]>
Sent: Friday, July 17, 2015 10:53 AM
Subject: [RBASE-L] - Re: Code quit working
Why fight city hall?
I gave up on this issue several years back and just grab the path of the
windows temp folder for the current user, which always guarantees read/write
permissions.
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Karen
> Tellef
> Sent: Friday, July 17, 2015 10:30 AM
> To: RBASE-L Mailing List
> Subject: [RBASE-L] - Re: Code quit working
>
> Same thing happened to me when a client had a windows update... A
> program regularly saved to a file called File.Txt. All of a sudden
> that file became super-protected and could not be overwritten or
> viewed. An administrator had to delete the file, then the program
> would work once but again the file would be super-protected. Believe
> it or not: I changed the program to save to a file named File2.txt,
> and it works every time.... Don't ask me why... So try changing the
> name of the file.
>
> Karen
>
>
>
> -----Original Message-----
> From: Michael J. Sinclair <[email protected]>
> To: RBASE-L Mailing List <[email protected]>
> Sent: Fri, Jul 17, 2015 9:00 am
> Subject: [RBASE-L] - Code quit working
>
>
> Hi all,
> The following code was working perfectly, 2 days ago after a windows
> update, it stopped working. The error message is...
>
> Can not find the U:\note.txt file
>
> Strange, it works when I trace it.
>
> --offnote.cmd
> SET VAR vpnum REAL
> IF vpnum IS NULL OR vpnum = 0 THEN
> GOTO END
> ENDIF
> SET HEADINGS OFF
> DROP TABLE offnotes_dup
> PROJECT TEMPORARY offnotes_dup FROM offnotes USING * + WHERE patnumbr =
> .vpnum UPDATE offnotes_dup SET dictdata = +
> '######################################################################
> ######' + WHERE dictdata = 'DICTATED BUT NOT READ TO EXPEDITE FILING'
> OUTPUT u:\note.txt
> SELECT dictdata FROM offnotes_dup +
> WHERE patnumbr = .vpnum ORDER BY rdate_=D linenum=A OUTPUT SCREEN
> LAUNCH u:\note.txt ERASE u:\note.txt LABEL END RETURN
>
> What am I doing wrong?