I tried a lot of different batch file command lines but this one is the only one which works.
Note: You CANNOT get 'randfile.exe' to run under Vista unless you keep the file name under 8 characters! See below. AND you must put "2" spaces between the randfile.exe and "*.tga" AND "2" spaces between "*.tga" and "xxxxxxxx.tga". Where the X's are your new file name. See below.
In addition to this I could NOT get randfile.exe to look more than 1 folder deep from the root directory. Hence the "zzz" folder in the root. This is just the main start up screen. I am working on the mission screens, but it will take a little longer.
I hope this helps. Just copy and paste everything below @echo on to a notepad file and save as "whatever_u_like.bat"
Yea! I have contributed something!
My batch file command code:
@echo on
REM CREATING THE NEW BACKGROUOND
C:\RANDFILE.EXE C:\zzz\*.tga C:\zzz\new.tga
REM MOVING AND RENAMING THE NEW BACKGROUND
move new.tga "%root%\Program Files\Ubisoft\IL-2 Sturmovik 1946\MODS\SplashScreen\GUI\background.tga"
REM CHANGE TO ROOT DIRECTORY
CD\
REM CHANGE TO GAME DIRECTORY
CD\Program Files\Ubisoft\IL-2 Sturmovik 1946
REM START GAME
START il2fb.exe