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
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.
something else and that solved this issue.
Please log in to answer
Posted by:
786_ak
12 years ago
Posted by:
dchristian
12 years ago
Seems to work when i try it. What permissions are you running the script as?
Comments:
-
admin - 786_ak 12 years ago