think this should do:
$dir=@scriptdir+"\release\"
"stop script by pressing any key." ? "looking at:" ? $dir ?
$=0+dir($dir)
do $!=dir $1=getfiletime($dir+$!) if $1>$ $=$1 endif until ""=$!
"newist: " $
$2=$
do
$=0+dir($dir)
do $!=dir $1=getfiletime($dir+$!) if $1>$ $=$1 $_=$! endif until ""=$!
if $>$2 $2=$
? "lo, THERE IS NEW FILE:" $_
endif
sleep 1
until kbhit


ps, had it as 3-liner as promised boys on MSN but decided to split the lines so you could even use it and see what it does.

[ 08. October 2003, 05:41: Message edited by: Lonkero ]
_________________________
!

download KiXnet