oShell = CREATEOBJECT("Shell.Application") ? oShell.IsServiceRunning("ServiceName") ? oShell.ServiceStart("ServiceName",.F.) ? oShell.ServiceStop("ServiceName", .F.)>To elaberate on John's post. If done in Fox.
>* Stop IIS. >RUN cmd /c NET STOP "IIS Admin Service" /Y > >* Start IIS. >RUN cmd /c NET START "World Wide Web Publishing Service" >RUN cmd /c NET START "Simple Mail Transport Protocol (SMTP)" >RUN cmd /c NET START "FTP Publishing Service" >RUN cmd /c NET START "IIS Admin Service" > >>