Micro Focus QTP (UFT) Forums
How to delete an existing folder - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to delete an existing folder (/Thread-How-to-delete-an-existing-folder)



How to delete an existing folder - srivania - 08-06-2008

Hello,

Can any one please tell me how to delete an existing folder using QTP

Thanks in advance


RE: How to delete an existing folder - prince3105 - 08-06-2008

Code:
Set oFSO = CreateObject("Scripting.FileSystemObject")
oFSO.DeleteFolder("C:\FSO")