07-31-2011, 16:04
Made a batch interface for this tool.
Code:
@echo off
title FFUtil interface!
goto start
:invalid
color 4f
cls
echo.
echo Invalid choice!
echo Any key to return!
pause
:start
color 02
cls
echo.
echo I want to:
echo.
echo 1. Unpack a fastfile
echo 2. Pack a fastfile
echo.
set /p choice= ::
if %choice% == 1 goto unpack
if %choice% == 2 goto pack
goto invalid
:unpack
color 02
cls
echo.
echo Enter the name of the file you want to unpack
echo.
set /p unf= ::
if exist %unf% goto unpack2
color 4f
echo File does not exist!
echo Maybe you forgot the extension.
echo Any key to return!
pause
goto unpack
:unpack2
cls
echo.
echo What name should the binary file have?
echo.
set /p unf2= ::
FFUtil -unpack %unf% %unf2%
cls
echo.
echo Done!
echo Any key to return to the menu!
echo.
pause
goto start
:invalid2
color 4f
cls
echo.
echo Invalid choice!
echo Any key to return!
pause
:pack
color 02
cls
echo.
echo Enter the binary file filename
echo.
set /p bf= ::
if exist %bf% goto pack2
color 4f
echo File does not exist!
echo Maybe you forgot the extension.
echo Any key to return!
pause
goto pack
:pack2
cls
echo.
echo Enter the name of the new file
echo.
set /p nf= ::
FFUtil -pack %bf% %nf%
cls
echo.
echo Done!
echo Any key to return to the menu!
echo.
pause
goto start