/bundles/itninjaweb/img/Breadcrumb_cap_w.png
does anyone have script that will delete folder on the hd.... i'm using the below script...
but it gives me permission denied error... so is there way i can delete this ??? thanks


Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFolder("C:\Testme")
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
Is it really a folder underneath C:\ (root)? Could it be a permission problem? Normal users can't create/delete folders directly under C:\.
Otherwise, give me the exact location and name of the folder and I create a WiseScript (selfexecutable .exe file) for you which you could include in a .msi Custom Action.
Or what about deleting the folder through the RemoveFiles table?

Cheers

Roland
Answered 06/21/2006 by: rpfenninger
Second Degree Green Belt

Please log in to comment
0
how about trying this script ................

On Error Resume Next
Dim fso, s
Set fso = CreateObject("Scripting.FileSystemObject")
s="c:\test"
fso.deletefolder(s),True
Answered 06/22/2006 by: Godfather
Senior Yellow Belt

Please log in to comment
0
Thanks a lot everyone.... inside the folder there was sub folder which was causing the permssion problem, so delete all the folder using vbscirpt & rename the error ones to something else.. ....
Answered 06/22/2006 by: aa006
Senior Purple Belt

Please log in to comment