SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 09-18-16, 05:37 PM   #1
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

A simple new Batch file to copy say just mission files we want to work on.

Again we need a list of the files we want.

Then make a batch file from the code below.

Code:
@echo off
set src_folder=c:\Movethis
set dst_folder=c:\target
for /f "tokens=*" %%i in (File-list.txt) DO (move /S "%src_folder%\%%i" "%dst_folder%")
I named mine Move-files.bat

Again do the C root folder stuff by copying the Campain folder to C and renameing it.

This batch file and file list can remain on your desktop if you wish.
Jeff-Groves is offline   Reply With Quote
Old 09-18-16, 05:43 PM   #2
Jeff-Groves
GLOBAL MODDING TERRORIST
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 4,242
Downloads: 149
Uploads: 0


Default

OK Jeff How do you get a list of things?

Good question!!


I use 010 Hex Editor!
For example.
MaxUnitsCreated=100
How many files have that?
010 gave me a list in less then 20 seconds.
I exported that list and did a few minutes work in Open Office to get it into a usable txt file.

Oh. The offer for a licensed copy to someone still stands.
Jeff-Groves is offline   Reply With Quote
Old 09-18-16, 08:30 PM   #3
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,245
Downloads: 466
Uploads: 4


Default

Quote:
Originally Posted by Jeff-Groves View Post
OK Jeff How do you get a list of things?

Good question!!


I use 010 Hex Editor!
For example.
MaxUnitsCreated=100
How many files have that?
010 gave me a list in less then 20 seconds.
I exported that list and did a few minutes work in Open Office to get it into a usable txt file.

Oh. The offer for a licensed copy to someone still stands.
Jeff-Groves, I feel I am not worthy of the 010 Editor - it's been years since I used any programming of just about any sort, and I'm not sure what all it takes to do batch files in "modern" Windows past Win98Se... but it sure would help with several things. If s7rikeback isn't going for it, or hasn't already, I will.
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   Reply With Quote
Old 09-18-16, 06:46 PM   #4
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,844
Downloads: 136
Uploads: 50


Default

Quote:
Originally Posted by Jeff-Groves View Post
A simple new Batch file to copy say just mission files we want to work on.

Again we need a list of the files we want.

Then make a batch file from the code below.

Code:
@echo off
set src_folder=c:\Movethis
set dst_folder=c:\target
for /f "tokens=*" %%i in (File-list.txt) DO (move /S "%src_folder%\%%i" "%dst_folder%")
I named mine Move-files.bat

Again do the C root folder stuff by copying the Campain folder to C and renameing it.

This batch file and file list can remain on your desktop if you wish.
Imagine what would have been possible if, instead of atrophying like the command line (DOS) did in Windows, it was allowed to grow and flourish like it has in Linux. The terminal command line is the holy temple of Linux, where all things are possible. In Windows, it's the shrunken and hated remains of when DOS was king.
Rockin Robbins is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.