/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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
Answer Summary:
something else and that solved this issue.
Cancel
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Community Chosen Answer


Answers

1
Hey dchristian, thanks for a quick response. You brought my attention to something else and that solved this issue.
Answered 03/29/2012 by: 786_ak
Third Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity

Answers

0
Seems to work when i try it. What permissions are you running the script as?
Answered 03/29/2012 by: dchristian
Red Belt

  • admin
  • This content is currently hidden from public view.
    Reason: Removed by user request
    For more information, visit our FAQ's.
Please log in to comment