Hello Karen,
I didn't get around to testing the script you send me until now. It turned out to be a permissions issue and I solved it by turning Impersonation on for this website. After that the uploads/rename and so on are working correctly again.
Thanks for the support.
Greetings,
Hajo Dijkstra