05.08.2009, 13:28
Could someone help me with writing a batch program. I need a batch program that will randomly select (and rename?) a file from a folder of files so that the generic file will be replaced and the newly selected file will run in its stead. Okay..confusing, it sounds. For example, the Splashscreen MOD folder uses a background.tga file. Likewise the MissionsSingle\Country folders for Menu screens. A batch program could select from a folder of TGA files a new Image TGA, rename as the generic default file, and when required/executed by the Game, the substitute file/image would appear In-Game.
In another Game, Silent Hunter, I have a batch program which can be run which selects a JPG file from a folder of several hundred variously name files, apprently renames the selected file to the required default file name recognized by the game 'code', and the selected JPG Picture appears in-Game. If anyone understands what i am looking for, and could write such a program using some sort of "Demo-Filler" folder and file names, I could possibly adapt the folder/file names to my needs. (Iif I can find out how to open and read/rewrite the batch.exe file/program)
Any help or tutorial guidance will be greatly appreciated.
In another Game, Silent Hunter, I have a batch program which can be run which selects a JPG file from a folder of several hundred variously name files, apprently renames the selected file to the required default file name recognized by the game 'code', and the selected JPG Picture appears in-Game. If anyone understands what i am looking for, and could write such a program using some sort of "Demo-Filler" folder and file names, I could possibly adapt the folder/file names to my needs. (Iif I can find out how to open and read/rewrite the batch.exe file/program)
Any help or tutorial guidance will be greatly appreciated.