I do see somewhat of a pattern, On my latest test I always encounter these files with the double _roadbuff:
The pattern I see is
CQ62 (with the addition of two other CQ62 files)
My theory is each file's "before" file is created correctly but for some unknown reason these files get looped a second time so for example
SOCAL_CQ62.cpg is then looped to create
SOCAL_CQ62_roadbuff.cpg but then this is looped again taking this as the new basename and adding _roadbuff once again resulting in
Why only these files I do not know?
For clarification here is the script I run on it's own:
Dim objFSO : Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim sFolder1 : sFolder1 = "S:\SOCAL\Section_20\Road Buffers"
Dim sFile, sName
For Each sFile In objFSO.GetFolder(sFolder1).Files
sName = objFSO.GetBaseName(sFile.Name) & "_roadbuff." & objFSO.GetExtensionName(sFile.Name)
sFile.Name = sName
<message edited by Clutch on Thursday, January 12, 2017 8:13 AM>
As I investigate further it appears the exact same files always have the repeat. I have run the script inside a bigger script (where it will end up) and I have run the script as it's own. Same files have duplication. Time delays have no effect.