![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
Commodore
![]() Join Date: Oct 2007
Location: Las Vegas, Nevada
Posts: 624
Downloads: 6
Uploads: 0
|
![]()
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, in Silent Hunter, the Girl in Every Port MOD is a program (Batch?) 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. (If I can find out how to open and read/rewrite such a batch.exe or *.Bat file/program)
Any help or tutorial guidance will be greatly appreciated.
__________________
Flight Sim Movies ![]() .........................View "Faith, Hope, and Charity" movie |
![]() |
![]() |
![]() |
#2 |
Silent Hunter
![]() Join Date: Dec 2004
Location: AN9771
Posts: 4,904
Downloads: 304
Uploads: 0
|
![]()
As far as my DOS memory spans backwards (so no 640k barrier involved
![]() Perhaps you can perform your desired function with the more modern Windows scripting languages VBscript or Jscript (can't help here unfortuneatly): http://msdn.microsoft.com/en-us/library/ms950396.aspx
__________________
My site downloads: https://ricojansen.nl/downloads |
![]() |
![]() |
![]() |
#3 |
Commodore
![]() Join Date: Oct 2007
Location: Las Vegas, Nevada
Posts: 624
Downloads: 6
Uploads: 0
|
![]()
Still looking for help...anyone seen Digital Trucker on the Forum lately????
__________________
Flight Sim Movies ![]() .........................View "Faith, Hope, and Charity" movie |
![]() |
![]() |
![]() |
#4 |
Commodore
![]() Join Date: Oct 2007
Location: Las Vegas, Nevada
Posts: 624
Downloads: 6
Uploads: 0
|
![]()
Sorry....Another Bump... I really need this help!
__________________
Flight Sim Movies ![]() .........................View "Faith, Hope, and Charity" movie |
![]() |
![]() |
![]() |
#5 |
Commodore
![]() Join Date: Jul 2002
Posts: 608
Downloads: 25
Uploads: 1
|
![]()
Do a Google search for "Batch Files" or "DOS Commands" ... you should find one or two good tutorials. Depending on your OS, you might also need to download and install a "recent" version of DOS from Microsoft.
|
![]() |
![]() |
![]() |
#6 |
Commodore
![]() Join Date: Oct 2007
Location: Las Vegas, Nevada
Posts: 624
Downloads: 6
Uploads: 0
|
![]()
Thanks. I might be making some progress...
__________________
Flight Sim Movies ![]() .........................View "Faith, Hope, and Charity" movie |
![]() |
![]() |
![]() |
|
|