mallen has asked for the wisdom of the Perl Monks concerning the following question:
$user = getlogin; $dir = "C:/Documents and Settings/".$user."/Local Settings/Temporary I +nternet Files"; chdir $dir; opendir(DIR,"$dir") or die "Could not open $dir:$!"; while (my $file=readdir(DIR)){ unlink $file ; system ( 'cmd', '/c', 'rmdir', '/s', '/q' , $dir); } closedir(DIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Deleting Temporary Internet Files
by Crian (Curate) on Apr 01, 2004 at 15:57 UTC | |
|
Re: Deleting Temporary Internet Files
by inman (Curate) on Apr 01, 2004 at 16:34 UTC | |
by mallen (Acolyte) on Apr 01, 2004 at 16:45 UTC | |
by inman (Curate) on Apr 02, 2004 at 06:58 UTC | |
by rtwingfield (Acolyte) on Jan 18, 2005 at 20:25 UTC |