in reply to Re^2: delete a file
in thread delete a file

cwd should match the directory containing the file, for your purposes.

Why don't you post the entire script?

--
jpg