I have tried
Code: Select all
DeleteDirectory(dir.s,"",#PB_FileSystem_Recursive)
I'm using PB4 B7
Code: Select all
DeleteDirectory(dir.s,"",#PB_FileSystem_Recursive)
Fred wrote:It's strange, it should delete the folder. Do you do any examinedirectory() or other directory operations before that ?
Code: Select all
If failedcopy=0
PrintN("Done!")
PrintN("")
PrintN("Delete Source Dir? (Y/N)")
r.s=Input()
If LCase(r.s)="y"
DeleteDirectory(dir.s,"",#PB_FileSystem_Recursive)
EndIf
Code: Select all
MakeSureDirectoryPathExists_("c:\xxx\yyy\zzz\")
DeleteDirectory("c:\xxx\","",#PB_FileSystem_Recursive)