Sorry for the delay, I wanted to clean up the code a little.
Rocco
Ok here we go...
code:
;==============================================================================
;Start KiXtart Script that calls kixwin.exe...
;==============================================================================
;==============================================================================
;---[ Testing Policy Script ]--------------------------------------------------
;==============================================================================
:POLICY
IF((@USERID = roccotest)OR(@USERID = rocadmin))
IF EXIST("%WINDIR%\policy") = 0
MD "%WINDIR%\policy"
ENDIF
IF EXIST("%WINDIR%\policy\@USERID") = 0
MD "%WINDIR%\policy\@USERID"
ENDIF
IF NOT EXIST("%WINDIR%\policy\@USERID\policy.txt")
? "[ Running Policy Script ]"
COPY @STARTDIR + "\_auxfiles\policy\policy.*" "%WINDIR%\policy\"
COPY @STARTDIR + "\_auxfiles\policy\kixwin.exe" "%WINDIR%\policy\"
$OUTPUT = "\\MANFP1NT\Public\IT\_RoccoC\temp\@USERID.@WKSTA.txt"
;==[ SHELL Pauses the script till the user responds ]==
SHELL '%comspec% /c %WINDIR%\policy\kixwin.exe file://%WINDIR%\policy\policy.html "@USERID;@WKSTA;@DATE" "dialogWidth:650px;dialogHeight:400px;help:no;scroll:no" > "$OUTPUT"'
IF @ERROR = 0
$RC = Open(2,"%WINDIR%\policy\@USERID\policy.txt",5)
$RC = WriteLine(2,"[ Policy Script Executed ]")
$RC = Close(2)
ENDIF
ENDIF
ENDIF
;==============================================================================
;==============================================================================
;End KiXtart Script that calls kixwin.exe...
;==============================================================================
;==============================================================================
;Start HTML Code...
;==============================================================================
<!--STYLE="WIDTH:500;HEIGHT:500;CENTER:YES"-->
<html>
<head>
<title>Company Internet and Software Use Policy</title>
</head>
<body onLoad="loadit()" bgcolor="#CCCCCC" text="#000000" marginheight=0 marginwidth=0 topmargin=10 leftmargin=10 rightmargin=10>
<div align="CENTER">
<table width="98%" border="1" bgcolor="#DDDDDD" bordercolor="#999999" cellspacing="0" cellpadding="2">
<tr>
<td><font size="-1">Please read and respond to the Internet and Software Use Policy. All resopnses are logged. Closing the window by clicking the [X] will result with a response of 'Decline'.
</font></td>
</tr>
</table>
<!--
_________________________
I Love this board!!
--------------------
My DEV PC is running
KIX 4.22 WINXP Pro