You can use variables to specify the NC program name when you write it.
%[ncprogram] — Inserts the NC Program Name.
%[partname] — Inserts the NC Program Part Name.
%[workplane] — Inserts the Workplane Name.
%[project.path] — Inserts the project pathname. This is specified in the Project Directory field in the Project Settings dialog (available from the NC program context menu). For example, it puts the NC program in the same place as the project.
%[path_from_opt] — Inserts the Machine Option File pathname. For example, all NC programs postprocessed with brid.opt option file are written out to the /PMILL project/ncprograms/BRIDGEPORT subfolder.
%[ncprogram.shortname]— Makes sure the NC program has a maximum of 8 characters.