>I am trying to figure out a way for VFP 6.0 to RUN a Novell USERLIST command that shows me the current users on the Novell network.
>
>Then, I need to use VFP 6.0 to check the userlist to see who is or is not on-line. Has anyone done this? Is there an easy way to do this?
>
>I have used the RUN command to perform DOS commands before, but I am not sure about Novell commands with the RUN command.
At least under 3.12 and 3.20, the following worked when one of the server's SYS:PUBLIC directories was in the DOS search path under Win9x, using my API_APPRUN class:
IF FILE('TEMP.TXT')
ERASE TEMP.TXT
ENDIF
SET CLASSLIB TO PROCESS
oProc = CREATEOBJ('API_APPRUN','USERLIST >>TEMP.TXT',FULLPATH(CURDIR()),'MIN')
oProc.LaunchAppAndWait()
oProc = ''
You can now read TEMP.TXT as a normal text file, without the annoying DOS box popping up, and waiting until the command finishes running.
>
>Any ideas? Thanks very much. I will keep looking in the meantime.