Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #1  
Old 12-04-2019, 05:58
shazzla shazzla is offline
Registered User
 
Join Date: Nov 2010
Location: Hunnia
Posts: 197
Thanks: 374
Thanked 82 Times in 60 Posts
shazzla is on a distinguished road
Help needed : Batch processing of *.BK2

hi !

I have a folder which contents a lot of subfolders ,and those folders have tons of BK2 files.
I need to pack those BK2 files (BPK) one by one ,named as the original ones ,but with .arc extension(in the same subfolder!) ,because some of them cant be processed as BINK.
Selecting/looking for them one by one makes my crazy,time consuming ,etc.
And of course i cant write the code in batch. Im too lame

How can i execute this line in batch ?
arc.exe a -i2 -r -mbpk 1.arc 1.bk2
Anyone can help me ?
Reply With Quote
Sponsored Links
  #2  
Old 12-04-2019, 15:00
Simorq's Avatar
Simorq Simorq is offline
Registered User
 
Join Date: Mar 2014
Location: Iran
Posts: 642
Thanks: 3,602
Thanked 1,274 Times in 463 Posts
Simorq is on a distinguished road
Code:
:-ioff         --shutdown
SET DIR=J:\Program Files (x86)\Mafia III Deluxe Edition
SET MC=bpk

Arc.exe create -i2 -ds=esn -ep1 -r -ed -s; -w.\Temp -dp"%DIR%" -m%MC% -n"*bk2" "RG-1.Bin"
RD /S /Q TEMP
pause
Reply With Quote
The Following User Says Thank You to Simorq For This Useful Post:
shazzla (13-04-2019)
  #3  
Old 13-04-2019, 01:53
shazzla shazzla is offline
Registered User
 
Join Date: Nov 2010
Location: Hunnia
Posts: 197
Thanks: 374
Thanked 82 Times in 60 Posts
shazzla is on a distinguished road
I didnt tried it ,but imho its not good for me.
Real example :

C:\dir1 (126 files)
C:\dir1\dir2 (72 files)
C:\dir1\dir2\dir3 (155 files)

I need to compress each bk2 into separate files(in the same subfolder with .arc extension) ,not in one archive!

I hope you understand.

Btw thanks for the help !
Reply With Quote
  #4  
Old 13-04-2019, 03:20
Joe Forster/STA's Avatar
Joe Forster/STA Joe Forster/STA is offline
Senior forum member
 
Join Date: Nov 2000
Location: Hungary
Posts: 9,579
Thanks: 6
Thanked 232 Times in 148 Posts
Joe Forster/STA is on a distinguished road
I think you're looking for this:
Code:
for /r %%f in (*.bk2) do arc.exe a -i2 -r -mbpk %%~dpnf.arc %%f
The variable called "%f" (if used in a .bat file, "%" must be doubled) is assigned the paths of all files matching "*.bk2" in all subdirectories, in any depth, of the current directory. After each assignment, the command after "do" is executed. The "%~dpnf" syntax splits the path in "%f" into components, keeps the "d"rive, "p"ath and "n"ame components only, and drop the e"x"tension - because you add another extension.

Run "for /?" in the command line for the complete description of the "for" command, including everything I wrote above.
__________________
Joe Forster/STA
For more information, see the FileForums forum rules and the PC Games forum FAQ!
Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply!
Homepage: http://sta.c64.org, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back!
Reply With Quote
The Following 2 Users Say Thank You to Joe Forster/STA For This Useful Post:
shazzla (13-04-2019), Simorq (13-04-2019)
  #5  
Old 13-04-2019, 04:38
shazzla shazzla is offline
Registered User
 
Join Date: Nov 2010
Location: Hunnia
Posts: 197
Thanks: 374
Thanked 82 Times in 60 Posts
shazzla is on a distinguished road
Many thanks !
Thats what im looking for !

@Joe Forster/STA : Egyebkent meg hello földi !

Last edited by shazzla; 13-04-2019 at 04:48.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unpack files with progress in batch gozarck Conversion Tutorials 3 29-06-2016 13:38
Small help to complete myh batch file sandmaan PC Games 0 17-08-2014 12:24
How do I make a batch file to burn CDDA games? Excalibur007 DC Games 1 01-06-2002 12:22
1:1 on Win2000 no crack needed. Win 98/XP crack needed. Why? Chikoko PC Games 0 16-01-2002 16:35
I want to know what is needed to start burning DC games???? 1977 DC Games 3 29-05-2001 22:17



All times are GMT -7. The time now is 19:52.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Copyright 2000-2020, FileForums @ https://fileforums.com