If the specific extensions you are looking for are: .csv first and then .cnf
You can use this code.

Change the variable $ChkDir to the directory you want to check.

code:
$ChkDir = "C:\Temp\"

$Csv_File = Dir($ChkDir + "*.csv")
While $Csv_File <> ""
$Cnf_File = $ChkDir + SubStr($Csv_File, 1, Len($Csv_File) - 4) + ".cnf"
If Exist($Cnf_File)
Del $Cnf_File
Del $ChkDir + $Csv_File
EndIf
$Csv_File = Dir()
Loop


Erik

[This message has been edited by kholm (edited 11 September 2000).]