use this script. save file as .vbs, and run. If the z:\folder exists, it will overwrite it with the d:\folder.
dim fs
dim delfolder
delfolder="z:\folder"
set fs = Wscript.CreateObject("Scripting.FileSystemObject")
If(fs.FolderExists(delfolder)) Then
fs.DeleteFolder(delfolder)
End...