wgyger12
asked on
Modifying local folder name...
Does anyone know how to go about changing the name of a folder using FSO? If not possible, is there an API available to do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
The easiest way to do this is to use the Name function. For example, you need to change the sam folder to sun, which is residing in the c:\ drive.
Name "c:\sam" as "c:\sun"
This is so simple.
Try it out
The easiest way to do this is to use the Name function. For example, you need to change the sam folder to sun, which is residing in the c:\ drive.
Name "c:\sam" as "c:\sun"
This is so simple.
Try it out
ASKER
Thanks AVI. I prefer to stay away from FSO if at all possible, and the API call seems to do the trick.
--------------------------
Dim fso
Set fso = Server.CreateObject("Scrip
fso.MoveFolder "C:\test1", "C:\test2"
Set fso = Nothing
--------------------------
-tushar