if you READ the links that I provided, RD only works on empty directories

so you will need to provide directory names in your file.
and do something like:

for each $d in readfile($file)
del "%programfiles%\"+d$+"\*.*" /s /c
rd "%programfiles%\"+d$ /q
next
_________________________
How to ask questions the smart way <-----------> Before you ask