#!c:\perl print "Content-type:text/html\n\n"; print < Perl Script Directory

Directory of c:\temp

WEB_PAGE $dir = "C:\\temp"; unless (opendir(DIR, $dir)) { &print_msg("\tCan't open $dir\n"); closedir(DIR); exit(0); } foreach (readdir(DIR)) { # don't include current dir or parent next if $_ eq '.' || $_ eq '..'; $path = "$dir/$_"; if (-d $path) { next; #&traverse($path); # check to see if file } elsif (-f _) { #if (!copy($path,"\\\\$Machine\\$Share{netname}\\temp\\")) { # &print_msg("FAILED ($path) " . Win32::Lanman::GetLastError() . "\n"); #} else { # &print_msg("."); #} #print "

\n"; print $path; } } sleep (10); print "\n";