Re: test if a directory exists if it does delete it else print directory does not exists

2001-05-02 Thread Paul
--- Peter Lemus <[EMAIL PROTECTED]> wrote: > HI Folks, > > I need to delete some directories, specified in > removedir.txt, I'll like to check whether the file > exists or not, if it doesn't I need to print file has > been deleted. this is what I've done so far. > > use file::spec; > use win32

RE: test if a directory exists if it does delete it else print directory does not exists

2001-05-01 Thread King, Jason
Peter Lemus writes .. >I need to delete some directories, specified in >removedir.txt, I'll like to check whether the file >exists or not, if it doesn't I need to print file has >been deleted. this is what I've done so far. ok .. line by line (and excuse the pedantry) >use file::spec; >use wi

test if a directory exists if it does delete it else print directory does not exists

2001-05-01 Thread Peter Lemus
HI Folks, I need to delete some directories, specified in removedir.txt, I'll like to check whether the file exists or not, if it doesn't I need to print file has been deleted. this is what I've done so far. use file::spec; use win32; chdir ("c://admin"); open (FILE1, 'c://admin//remove.txt') |