Skip to content

An easier way to VGZ?

Technical discussion about the VGM format, and all the software you need to handle VGM files.

Moderator: Staff

  • User avatar
  • RichterEX2 Offline
  • Posts: 191
  • Joined: 2012-03-30, 9:28:37
  • Location: Georgia, USA

An easier way to VGZ?

Post by RichterEX2 »

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.
  • User avatar
  • Knurek Offline
  • Posts: 84
  • Joined: 2011-12-30, 1:01:56

Re: An easier way to VGZ?

Post by Knurek »

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.
  • User avatar
  • ValleyBell Offline
  • Posts: 4768
  • Joined: 2011-12-01, 20:20:07
  • Location: Germany

Post by ValleyBell »

I'd say it's .bat time:

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"
You need gzip to (de-)compress the vgms.

Also, I recommend to put the line

Code: Select all

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.)
  • User avatar
  • tails_ Offline
  • Posts: 170
  • Joined: 2012-03-18, 16:59:23
  • Location: Tomsk, Russia
  • Contact:

Post by tails_ »

I usually do it like this:

Code: Select all

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.
Post Reply