Thank you for your quick answer. It works.. but he creats a 2004_04_.zip and in the logfile he writes 2004_04_19..

I've already another problem..

$FileNameXLS = Dir("$ipath\*.xls")
While $FileNameXLS <> "" AND @ERROR = 0
At ( $Count,7) "In Bearbeitung: " + $FileNameXLS
Shell '"$ppath\BatchPDF.exe" "$ipath\$FileNameXLS" "$opath\$FileNameXLS.pdf"'
IF exist('$opath\'' + split($FileNameXLS,'.')[0] + '.pdf')
DEL "'+ split($FileNameXLS,'.')[0] + '.pdf'"
ENDIF
shell '%ComSpec% /c rename "$opath\$FileNameXLS.pdf" ' + split($FileNameXLS,'.')[0] + '.pdf'
Shell '%ComSpec% /c echo Folgende Datei wurde konvertiert: $FileNameXLS >> "$logfile"'
Sleep 0.001
MOVE "$ipath\$FileNameXLS" "$apath\$FileNameXLS"
$FileNameXLS = Dir()
$Count = $Count + 1
IF $Count = 19
$Count = 6
GOTO "new"
ENDIF

Loop

The Error Note is that in this line
IF exist('$opath\'' + split($FileNameXLS,'.')[0] + '.pdf')
is missing an )... but where?


Edited by kixnewbie (2004-04-19 12:18 PM)