SYSTEM command wait
SYSTEM command wait
(OP)
Using WebFocus, how can I ensure when calling a DOS command via the SYSTEM command, that sufficient time is allowed for the operation is complete? Is there some way to "pause" the fex until the DOS command has completed?
I'm having occasional problems when the DOS command takes more than 5 or 6 seconds in that a messaage appears saying "There is no response. Do you want to keep waiting?"
This is flagged as a "Focus Message" but I'm not sure whether it's being issued by DOS, Windows (2000) or WebFocus. Many Thanks, Peter.
I'm having occasional problems when the DOS command takes more than 5 or 6 seconds in that a messaage appears saying "There is no response. Do you want to keep waiting?"
This is flagged as a "Focus Message" but I'm not sure whether it's being issued by DOS, Windows (2000) or WebFocus. Many Thanks, Peter.
RE: SYSTEM command wait
I can't find any timer, or indication that WebFOCUS produces this message. If you issue this command from a DOS box, outside of WebFOCUS, does the message appear? When I tried to repro this situation from within WebFOCUS, calling a BAT file with a PAUSE command, it just sat there, no message.
Also, WHAT DOS command(s) were you trying to execute?
RE: SYSTEM command wait
which holds focus for 10 seconds
On my windowsserver, i use the CMS syntax instead of the word DOS
CMD COPY someting to somewhere
and i've never had a problem
even tho some of these commands can take a good 10 minutes.
-SUSANNAH
RE: SYSTEM command wait
I, too, was a former occupant of the Focus CMS environment. Things were so much simpler there!
Anyway, the SLEEP command does work in WebFocus - but only after the DOS copy command has finished - so it does not really help. I also tried the CMD copy command, as you suggested but to no avail. I have no way of attaching an image file here but if I could, you would see from the the actual copy attempt and the resulting "Focus" error message.
Peter.
[img c:\focus.gif]
Quae vita est cui orbatus est vino?