I am trying to rename a folder, and I’m having a hard time getting it done. It works fine on the Mac, but in Windows, it does not work.
The folder is called RR2. The application that is renaming the folder is contained in the RR2 folder.
The code I’m using is the following:
[code] Dim f2 as folderitem = getfolderitem("").parent.child(“RR2”)
If f2.Exists Then f2.Name = "RR2 Renamed" else msgBox "No File Found" End If[/code]
As I said, under macOS, its works fine, but not under Windows. It does not give a No File Found message, but it also does not rename it.
I’m not sure what is going on here.