k, added easy set interval logics.
doc, I can't understand what the heck is going wrong with your wksta.
all works a charm here.
$dir="%windir%\system32\" ;dir where to check. remember ending slash
$scanningInterval=30 ;time in seconds to wait between scans
; $NewFile is always set to the new file.
; you can also directly code your execution to "lo" section
"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=$
$NewFile=$_
? "lo, THERE IS NEW FILE:" $_
endif
for $_=1 to $scanningInterval
sleep 1
if kbhit
? ? "you wanna exit?" ? "so be it."
sleep 3
exit 0
endif
next
until 1=0
|
[ 08. October 2003, 07:42: Message edited by: Lonkero ]
_________________________
!download
KiXnet