G
Guest
Hi can anybody help
I need some code to delete everything in a folder and the folder itself.
Sometime the folder may contain both files and folders or may even be empty.
myPathDel = "C:\test"
Kill myPathDel & "\*.*"
RmDir (myPathDel)
I have tried variations of theses and nothing seems to work. In the example
the folder "test" may be empty or may contain a combination of files and
folders, I need a way of deleting this no matter what it conatins.
Thanks In advance
Matt
I need some code to delete everything in a folder and the folder itself.
Sometime the folder may contain both files and folders or may even be empty.
myPathDel = "C:\test"
Kill myPathDel & "\*.*"
RmDir (myPathDel)
I have tried variations of theses and nothing seems to work. In the example
the folder "test" may be empty or may contain a combination of files and
folders, I need a way of deleting this no matter what it conatins.
Thanks In advance
Matt