I am an administrator for a very popular game server. Weekly, I must change the "maps" (a battle field, of sorts) in rotation for the server. Each map is in a folder. In BC4, I have a Folder Compare session that loads two different FTP servers. On the right is the Master server which contains the master copies of all maps. On the left is the Game server which always has a subset of the folders found on the Master server.
Presently on a weekly basis, I go through and select all the maps folders on the Master(right) server that need to be copied to the Game(left) server and use the Copy button on the toolbar to perform the copy. This involves manually selecting approximately 50 folders on the right to copy to the left. Once the current week's maps have been loaded, the previous week's maps must be deleted from the Game server. That usually happens a day later.
I have tools that let me generate lists of maps (which have the same name as the folders) to run for each new week, and would like to use these lists to build BC4 scripts to automate this copy process.
I'm sorry to have to ask, but I've spent quite a bit of time reading the manual, and just a simple, distinct folder copy from one side to the other is not given as an example. Neither have I seen any request here in the fourm to do this exact thing.
Can you please give me the scripting commands to accomplish these tasks?:
1) With the session I have loaded, copy a folder from the left to the right, regardless of whether it already exists. I don't care if an existing folder gets overwritten with identical content.
2) Delete a folder from the left without involving the right in any way. Folders on the right are sacred and must never be altered or deleted.
Thanks.
Presently on a weekly basis, I go through and select all the maps folders on the Master(right) server that need to be copied to the Game(left) server and use the Copy button on the toolbar to perform the copy. This involves manually selecting approximately 50 folders on the right to copy to the left. Once the current week's maps have been loaded, the previous week's maps must be deleted from the Game server. That usually happens a day later.
I have tools that let me generate lists of maps (which have the same name as the folders) to run for each new week, and would like to use these lists to build BC4 scripts to automate this copy process.
I'm sorry to have to ask, but I've spent quite a bit of time reading the manual, and just a simple, distinct folder copy from one side to the other is not given as an example. Neither have I seen any request here in the fourm to do this exact thing.
Can you please give me the scripting commands to accomplish these tasks?:
1) With the session I have loaded, copy a folder from the left to the right, regardless of whether it already exists. I don't care if an existing folder gets overwritten with identical content.
2) Delete a folder from the left without involving the right in any way. Folders on the right are sacred and must never be altered or deleted.
Thanks.
Comment