Hello,
I'm having a strange error when I try to rename a folder using the .folder
property. When I run the following code:
---
' To rename a folder
Dim fso, folder1
Set fso = CreateObject("Scripting.FileSystemObject")
Set folder1 = fso.GetFolder("c:\chaz")
msgbox folder1.Name
folder1.Name = "chazrenamed"
msgbox folder1.Name ' *****
WSCript.quit
---
the WSH will return a runtime error stating "Path not found" at the second
msgbox folder1.Name line above (the ***** line). And then, when I then open
up Windows explorer to look at the folder, the folder has not been renamed!
This is a particularly odd problem because I only run into it on certain
computers, and not others. When I copy the exact same code over to a
computer next to me, also running Win98, it works fine, but on my computer
here, it doesn't.
Anyone have any ideas?
Charles