Batch program wanted
#1

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.
Reply
#2

So you need a program that gives you a random splashscreen from a folder full of splashscreens when you run the program, right?
Reply
#3

Yes...that's the idea. I saw the thread about the random SplashScreen MOD, but I couldn't quite figure out how to adapt the batch writing to my situation. (I'm not doing Splash Screens per se, and not for IL2 (yet). I will have a file in a D: \GAMEROOT\Data\ folder. That file, let's say is called ABCD.XXX. I want to have a Folder somewhere containing lots of *.XXX files, and the batch program when run will randomly select and swap one of those files for the original/default ABCD.XXX file in the ROOT\Data folder. Whew!
Reply
#4

Doolittle81 Wrote:Yes...that's the idea. I saw the thread about the random SplashScreen MOD, but I couldn't quite figure out how to adapt the batch writing to my situation. (I'm not doing Splash Screens per se, and not for IL2 (yet). I will have a file in a D: \GAMEROOT\Data\ folder. That file, let's say is called ABCD.XXX. I want to have a Folder somewhere containing lots of *.XXX files, and the batch program when run will randomly select and swap one of those files for the original/default ABCD.XXX file in the ROOT\Data folder. Whew!
You can find XXX files from the internet... (OK, I didnt understand, maybe someone who knows more about these things...)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)