#136569 - 2005-03-28 10:31 PM
Re: not deleting file- why?
|
Anonymous
Anonymous
Unregistered
|
GRRRRRR
I've changed it to be this: $date1 = @date
call "\\server\scripts\DateCalc.udf"
C1 $c=0
$file=DIR("\\server\adlogs\logs_dc1\*.log") WHILE $file <> "" and @error=0 $c=$c+1 ? $file if DateCalc(@date,left(getfiletime($file),10)) > 2 ? $file del "\\monm607\adlogs\monm_dc1\$file" endif $file=DIR() LOOP
and I KNOW the file logic is working because it displays the file name, and I'm assuming that since I'm in the IF... THEN logic, the solution must be TRUE. so why isn't it executing the delete statement? I even tried shlling out with a comspec /s del "\\server\adlogs\log_dc1\$file" but no luck. why isn't the delete statement running? Sorry to be such a PITA
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1160 anonymous users online.
|
|
|