I am attempting to rename over 1000 files using SolidWorks Dispatch. I'd like to rename the part files to the part number in each file's data card. I've got the following commands in dispatch:
And I have the following variables:
The error I get when I try those commands for multiple files is:
I'm not sure what's causing the issue. I've attached the code as an .acn file below. Please assist me and thank you in advance.