Hello,

I'm creating a little program that is uninstalling another program.
This is done by using the shell command like this:

shell ("c:\program files\myapp\uninst.exe")

Now, once the uninstaller finished (checked that using the process list), I have to delete the folder myapp which is in program files.
Therefor, I'm using fso.deletefolder ("c:\program files\myapp"), but I always receive a permission denied message.

When I try this command without running the shell command first, it works, so I figure that the shell command keeps blocking the directory. How can I prevent that?

Thanks.