I have done this with a batch File.. You could shell out and do it with KIX..Here are the BATCH Commands..
code:
::STOP THE FTP SERVICE
NET STOP "FTP Publishing Service"
::STOP THE WWW PUBLISHING SERVICE
NET STOP W3SVC
::STOP IISADMIN
ECHO Y | NET STOP IISADMIN
::WAIT 30 SECONDS FOR THE SERVICE TO COMPLETELY STOP
SLEEP 30
: :DELETE TEMP/JUNK FILES IN THE TEMP LOCATION
DEL /S/Q %TEMP%\*.TMP
DEL /S/Q %TEMP%\~*.*
DEL /S/Q %TEMP%\ff*.TMP
: :DELETE TEMP/JUNK FILES FROM WINNT
DEL /S/Q %WINDIR%\*.TMP
DEL /S/Q %WINDIR%\~*.TMP
DEL /S/Q %WINDIR%\ff*.TMP
: :DELETE FDF FILES FROM WORKORDER LOCATION
DEL /S/Q "E:\PDF Personalization\Workorder\*.FDF"
::RESTART THE WEB SERVICE
NET START IISADMIN
::START THE FTP SERVICE
NET START "FTP Publishing Service"
::INSURE W3SVC IS STARTED
NET START|FIND /I "WORLD WIDE WEB PUBLISHING SERVICE"
IF ERRORLEVEL 1 GOTO :W3SVC
IF ERRORLEVEL 0 GOTO :EOF:W3SVC
NET START W3SVC
GOTO :EOF
:EOF
EXIT
::IF EXIT DOES NOT WORK, THIS DOES ;-)
CLS
I know this is not KIX, but this should get you going.. You can also use the shutdown from the NT Resource Kit.
Cheers,
Kent
[This message has been edited by kdyer (edited 03 January 2001).]