/build/static/layout/Breadcrumb_cap_w.png

VBScript is not Deleting the folder

Hi,

I am trying to delete a folder using following code:

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("C:\Program Files\Microsoft Folder Name")

objFolder.Delete

but it's not doing the job, and yes "Microsoft Folder Name" does have spaces. Any thoughts!!

Thanks in advance

0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
something else and that solved this issue.
Posted by: 786_ak 12 years ago
Third Degree Green Belt
1
Hey dchristian, thanks for a quick response. You brought my attention to something else and that solved this issue.
Posted by: dchristian 12 years ago
Red Belt
0
Seems to work when i try it. What permissions are you running the script as?

Comments:
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ