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.
An easier way to VGZ?
Technical discussion about the VGM format, and all the software you need to handle VGM files.
Moderator: Staff
- RichterEX2 Offline
- Posts: 191
- Joined: 2012-03-30, 9:28:37
- Location: Georgia, USA
An easier way to VGZ?
Last edited by RichterEX2 on 2013-03-18, 7:31:33, edited 1 time in total.
Re: An easier way to VGZ?
VGZ is just VGM files, GZipped. Total Commander (and probably tons of other tools) has option to compress files to that format.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.
- ValleyBell Offline
- Posts: 4773
- Joined: 2011-12-01, 20:20:07
- Location: Germany
I'd say it's .bat time:
You need gzip to (de-)compress the vgms.
Also, I recommend to put the lineat 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.)
Code: Select all
rem VGM -> VGZ
gzip -n9 *.vgm
for %%f in (*.vgm.gz) do ren "%%f" "%%~nf"
ren *.vgm *.vgz
Code: Select all
rem VGZ -> VGM
ren *.vgz *.vgm.gz
gzip -d *.vgm.gz
for %%f in (*.vgm.gz) do ren "%%f" "%%~nf"
Also, I recommend to put the line
Code: Select all
set path=##path of gzip.exe##
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.)
I usually do it like this:
gzip and bat file are to be put somewhere in %PATH%
Uh oh, looks like gzip can work with masks :D
Code: Select all
rem VGM -> VGZ
for %%f in (*.vgm) do gzip -9 "%%f"
ren *.gz *.
ren *.vgm *.vgz
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.