first would be to have the full path in the file, however...

del 'C:\program files\'+$file
_________________________
How to ask questions the smart way <-----------> Before you ask