Hi all,
I have a script that generates temporary files into a directory on the server called "/files" (c:\inetpub\
Part of my script is to go through this directory and delete any files older than a certain time period. This is the code I have:
foreach $file (<c:/inetpub/ {
# if((-C $file) >= 0.1) {
system("del $file"
; }
#}
I've commented out the two lines because, for testing, I want to see if I can deleted all files in this directory.
The NTFS permissions for this dir have been set to Full Control for Everyone (again for testing), likewise with IIS's permissions - but it still don't work!
Can anyone offer any advice (or alternate code) as to how I might do this...
Thanks in advance
I have a script that generates temporary files into a directory on the server called "/files" (c:\inetpub\
Part of my script is to go through this directory and delete any files older than a certain time period. This is the code I have:
foreach $file (<c:/inetpub/ {
# if((-C $file) >= 0.1) {
system("del $file"
#}
I've commented out the two lines because, for testing, I want to see if I can deleted all files in this directory.
The NTFS permissions for this dir have been set to Full Control for Everyone (again for testing), likewise with IIS's permissions - but it still don't work!
Can anyone offer any advice (or alternate code) as to how I might do this...
Thanks in advance