All I want to do is rename a folder.
So, since there's no Rename method, I'm using CopyFolder instead and then deleting the original (I tried MoveFolder but couldn't get it to work either).
Like this:
old_path = "/home/sites/site14/web/artists/test/*" new_path = "/home/sites/site14/web/artists/test1/"Set folder = fso.CreateFolder(new_path) Set folder = nothing fso.CopyFolder old_path, new_path fso.DeleteFolder old_path, True
This copies over only subfolders, and not files contained in the folder. This is the *best* I've come up with, having played with a number of variations on the path names (wildcards, /'s, etc).
What am I missing???

New Topic/Question
Reply



MultiQuote



|