First post here.
Is it possible to create a single batch file that can remove the contents of a directory and then add new files to it from another directory?
I am using Microsoft flight Simulator which requires community addons to be stored in the "Community" folder. The problem is with lots of aircraft addons and other addons that are utilised alongside each individual aircraft, the "Community" folder inevitably ends up clogged and this can effect the performance of the sim. It also makes diagnosing performance issues relative to particular addons a bit more difficult.
My solution recently has been to create a series of "Community" folders appended with the aircraft name (Community_747, Community_310R and Community_CJ4 etc) and clear the community folder and then add the contents of the appended folders to the community folder based on the aircraft I am going to be flying.
It would be preferable if I could make use of a multi command batch file to carry out that process. I could then add that bat file to a streamdeck profile and give it an aircraft icon for the aircraft so that it would then be possible to one click on the streamdeck for the aircraft I'd like to use. That would keep the community folder minimal and enable for better performance in the flight sim as well as making it easier to diagnose potential addon problems affecting performance.
I hope I have made that as clear as I possibly can and thank you in advance to anyone that could possibly help me move forward with this. It would be very much appreciated.