Ok sort of got to the bottom of it.
Gone back to Dos 8.3 for a start, because Windows 11 by default has LongPathsEnabled disabled.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000000
"LongPathsEnabled"=dword:00000000 (disabled - Windows 11 default)
"LongPathsEnabled"=dword:00000001 (enabled)
C11 doesnt like
#Program( TBProg, 'TBF Program', 'Clarion','.CLW' )
#Module( TBMod, 'TBF Module', 'Clarion','.CLW' )
#Procedure( TBToDo, 'TBF ToDo', 'Clarion' ), Default
#Procedure( TBProc, 'TBF Procedure', 'Clarion' )
but it does accept
#Program( TBProg, 'TBF Program' )
#Module( TBMod, 'TBF Module' )
#Procedure( TBToDo, 'TBF ToDo' ), Default
#Procedure( TBProc, 'TBF Procedure' )
But looking at the ABC templates because they are not default Clarion templates, #Program doesnt use target and file extension, and some of the other #Procedure templates do and some dont.
So its pointing to #Program being the roadblock. Off to test...
#PROGRAM(ABC,'Default Program'),HLP('~TPLProgram.htm')
#MODULE(ExternalSource,'External Source Module','External','.clw'),EXTERNAL,HLP('~TPLModuleGenerated.htm')
#MODULE(ExternalObj,'External Object Module','External','.obj'),EXTERNAL,HLP('~TPLModuleGenerated.htm')
#MODULE(ExternalLib,'External Library Module (LIB)','External','.lib'),EXTERNAL,HLP('~TPLModuleGenerated.htm')
#MODULE(ExternalDLL,'External Dynamic Link Library (DLL)','External','.lib'),EXTERNAL,HLP('~TPLModuleGenerated.htm')
#PROCEDURE(Browse,'Browse Fields in a List Box'),WINDOW,REPORT,HLP('~TPLControlBrowseBox.htm#defaultbehavior'),PARENT(Window(ABC))
#PROCEDURE(External,'External Procedure','External'),HLP('~TPLProcExternal.htm')
#PROCEDURE(SourceClass,'Source Class','ClarionOOP'),WINDOW
#PROCEDURE(ToDo,'Procedure not yet defined'),DEFAULT
#PROCEDURE(UserControlClass,'UserControlClass','ClarionOOP'),WINDOW,PARENT(SourceClass(ABC))
#PROCEDURE(Window,'Generic Window Handler'),WINDOW,REPORT,HLP('~tplprocwindow.htm')
I wrote templatebuilder so it filled in all omittable defaults, which is why things like 'Clarion','.CLW' is added automatically, to help occasional users and newbies pick things up more quickly, and hardware is just that much more capable today with big wide monitors, and not tiny 80 column green screens or orange screens...