vorrei contare i files che ci sono in una directory, sul forum l'ho trovato solo in php:
in asp come diventa?codice:<? $dir="/var/www/prove/"; $fileopen="file.txt"; if ($handle = opendir($dir)) { $count=0; while (false !== ($file = readdir($handle))) { if($file!="." && $file!="..") { $count++; } } } $file = fopen($fileopen, "w"); $stringa="Totale=".$count; fwrite($file,$stringa); fclose($file); ?>
grazie