vgmrips

The forum about vgm files
It is currently 2017-11-22, 14:36:05

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: An easier way to VGZ?
PostPosted: 2013-03-18, 7:29:24 

Contributors Contributors
Artists Artists
Offline
User avatar

Joined: 2012-03-30, 9:28:37
Posts: 182
Location: Hagan, GA, USA
Is there an easier way to turn VGMs into VGZs? Currently I have to load each VGM into VGMTool and do it that way. What I'd really like to do is have an app I can just drop into a folder of VGMs and turn them all into VGZs at once.

EDIT: Not to mention VGMTool has the nasty habit of lopping off the end of some of the filenames in the process of doing this.


Last edited by RichterEX2 on 2013-03-18, 7:31:33, edited 1 time in total.

Top
 Profile  
 
PostPosted: 2013-03-18, 9:22:54 
Offline
User avatar

Joined: 2011-12-30, 1:01:56
Posts: 84
RichterEX2 wrote:
Is there an easier way to turn VGMs into VGZs? Currently I have to load each VGM into VGMTool and do it that way. What I'd really like to do is have an app I can just drop into a folder of VGMs and turn them all into VGZs at once.


VGZ is just VGM files, GZipped. Total Commander (and probably tons of other tools) has option to compress files to that format.


Top
 Profile  
 
 Post subject:
PostPosted: 2013-03-18, 14:50:34 

Staff Staff
Programmers Programmers
Musicians Musicians
Contributors Contributors
Online
User avatar

Joined: 2011-12-01, 20:20:07
Posts: 2853
Location: Germany
I'd say it's .bat time:
Code:
rem VGM -> VGZ
gzip -n9 *.vgm
for %%f in (*.vgm.gz) do ren "%%f" "%%~nf"
ren *.vgm *.vgz

Code:
rem VGZ -> VGM
ren *.vgz *.vgm.gz
gzip -d *.vgm.gz
for %%f in (*.vgm.gz) do ren "%%f" "%%~nf"

You need gzip to (de-)compress the vgms.

Also, I recommend to put the line
Code:
set path=##path of gzip.exe##
at the beginning of the .bat files.
This allows you to copy the .bat file to any folder without the need to copy gzip.exe, too. (And this is the way I do it, btw.)


Top
 Profile  
 
 Post subject:
PostPosted: 2013-03-18, 15:56:25 

Programmers Programmers
Contributors Contributors
Offline
User avatar

Joined: 2012-03-18, 16:59:23
Posts: 152
Location: Tomsk, Russia
I usually do it like this:

Code:
rem VGM -> VGZ
for %%f in (*.vgm) do gzip -9 "%%f"
ren *.gz *.
ren *.vgm *.vgz


gzip and bat file are to be put somewhere in %PATH%

Uh oh, looks like gzip can work with masks :D


Last edited by tails_ on 2013-03-18, 15:57:19, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group