Instead of RUN you should use Shellexecute
DECLARE INTEGER ShellExecute IN shell32;
INTEGER hwnd,;
STRING lpOperation,;
STRING lpFile,;
STRING lpParameters,;
STRING lpDirectory,;
INTEGER nShowCmd
=ShellExecute("YourProgramme.exe")
>Thanks!
>If I decide for the command NET how can I avoid the
>annoying black DOS command window that popups
>when using command RUN?
>The switch /n in the RUN command solves the problem if
>what you are running is a windows application. Of course
>if it's a DOS based application, like NET, it sends messages
>to the DOS console and that keeps the black window open.
>
>>See thread#
586930 >>
>>>Hi.
>>>I need to manage (start/stop/etc) some windows services in my application.
>>>My questions:
>>>1. How can I programatically access windows services?
>>>2. How can I "say" a service to Start, Stop, Pause, Resume or Restart?
>>>
>>>Thanks in advance.