You can use the attached script to freeze all features in the part.
You can use #TASK utility to run this script on all files in the folder.
Just select or drag-n-drop the folder to process, specify the filters to SolidWorks Parts.
Make sure that you uncheck the 'Open Read Only' option in 'Settings' dialog as shown below.
it is recommended to backup your files before running the script in the batch mode.
freeze_all.sts.zip 595 bytes
I suggest you use
In the TraverseComponentFeatures sub
boolstatus = featMgr.EditFreeze(swMoveFreezeBarTo_e.swMoveFreezeBarToEnd, featName, True)
for freeze the feature.
I hope signing a help
Roberto , good suggestion for using the EditFreeze vs MoveFreezeBarTo. I have simplified the script.
freeze_all_move_to_end.sts.zip 380 bytes
I was writing while you brought your solution.
In fact yours it is faster if you freeze all features without filtering them.