Copy a folder in Assets/Resources folder programatically depending upon a constant

I have a Unity3d project in which I have 200 games and some 350 scenes. Now I want to make separate builds for each game. All my assets are present in Assets/IgnoredAssets/ABC folder. To include these assets in my current build the assets of the current game (say ABC) needs to be in Assets/Resources/ABC. I want unity to pick these Assets/IgnoredAssets/ABC and copy them in Assets/Resources before making build depending upon a constant defined in some file.

I want a kind of automation so that when i mention in my constant file

string gameName=“ABC”; it automatically picks its assets, paste them in Resources and build for me.

How can I do this? Thanks in advance.

Pro users can make use of the BuildPipeline class:

BuildPlayer() lets you specify the scenes you want to include in the build.