This displays the NC Preferences dialog.
Select Use Project - Off to write the NC program file to a different folder. You need to specify it in the Output Folder box.
The variable %[ncprogram] gives the output file the same name as the NC program. You can add your file name to this variable.