soze Posted June 2, 2008 Posted June 2, 2008 I trying to edit this script so that it deletes the ucf folder instead of renaming it to .old. sDS="c:\documents and settings\" set oFolder=ofso.getfolder(sDS) for each oSubFolder in oFolder.subfolders DocumentumDir = sDS & oSu.name & "\Documentum\" If oFSO.folderExists(DocumentumDir & "ucf") Then If oFSO.folderExists(DocumentumDir & "ucf.old") Then oFSO.deleteFolder(DocumentumDir & "ucf.old") End If oFSO.MoveFolder DocumentumDir & "ucf" , DocumentumDir & "ucf.old" End If next
Jona Posted June 2, 2008 Posted June 2, 2008 You need to do set objFSO = CreateObject("Scripting.FileSystemObject") objFSO.DeleteFolder(strFolderPath) See Delete folder (VBScript) - Windows Server Cookbook 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now