Jump to content

Recommended Posts

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...