here's the source code (I have not updated the utility for use in Steam "Die More Edition":
:: Created by Derek Nelson of W¥F¥ Studios
@ECHO off
COLOR 0a
mode con cols=74 lines=26 >nul
SETLOCAL ENABLEDELAYEDEXPANSION
:: This bit of script pipes the version number found in the filename
:: throughout the whole utility automatically!!! FREAKIN AWESOME!!
FOR %%s IN (*TSU*) DO (
REM %%~ns = filename - extension
FOR /F "tokens=1,2*" %%t IN ("%%~ns") DO (
REM %%u = filename - spaces or "@" symbols
FOR /F "tokens=2 delims=_" %%v IN ("%%u") DO (
REM %%v = filename AFTER the "_"
SET v=%%v
REM !v! = version number
)
)
)
TITLE Teleglitch Save Utility !v!
::ECHO.
::ECHO.
::ECHO CHECKING SYSTEM LOCALE
::ECHO.
:::: This bit of code checks for the system locale to see if it is en-us.
::FOR /F "usebackq tokens=1,2,3* delims=:;" %%a IN (`systeminfo /FO LIST ^| findstr /B /C:"System Locale:"`) DO (
:: FOR /F %%d IN ("%%b") DO (
:: SET locale=%%d
::
:: )
::)
::IF !locale!==en-us (GOTO PREINTRO) ELSE (ECHO.)
::ECHO.
::ECHO.
::ECHO Your computer's locale is NOT set to en-US. For COPY and LOAD functions
::ECHO to work as intended it is recommended you change your LOCALE to en-US.
::ECHO.
::ECHO.
::ECHO.
::pause
:::PREINTRO
::ECHO.
::ECHO.
::ECHO SYSTEM LOCALE CORRECT. :D
::PING localhost -n 4 >nul
:INTRO
cls
ECHO ___________ .__ .__ .__ __ .__
ECHO \__ ___/___ ^| ^| ____ ____ ^| ^| ^|__^|/ ^|_ ____ ^| ^|__
ECHO ^| ^|_/ __ \^| ^| _/ __ \ / ___\^| ^| ^| \ __\/ ___\^| ^| \
ECHO ^| ^|\ ___/^| ^|_\ ___// /_/ ^> ^|_^| ^|^| ^| \ \___^| Y \
ECHO ^|____^| \___ ^>____/\___ ^>___ /^|____/__^|^|__^| \___ ^>___^| /
ECHO \/ \/_____/ \/ \/
ECHO _________ ____ ___ __ .__.__ .__ __
ECHO / _____/____ ___ __ ____ ^| ^| \_/ ^|_^|__^| ^| ^|__^|/ ^|_ ___.__.
ECHO \_____ \\__ \\ \/ // __ \ ^| ^| /\ __\ ^| ^| ^| \ __^< ^| ^|
ECHO / \/ __ \\ /\ ___/ ^| ^| / ^| ^| ^| ^| ^|_^| ^|^| ^| \___ ^|
ECHO /_______ (____ /\_/ \___ ^> ^|______/ ^|__^| ^|__^|____/__^|^|__^| / ____^|
ECHO \/ \/ \/ \/ !v!
ECHO ^<==: WYFY Studios :==^>
ECHO.
ECHO.
ECHO I created this utility because I suck at this game...
ECHO.
ECHO.
ECHO TIP:
ECHO Leave TSU open while you play Teleglitch so you can quickly COPY your
ECHO saves as you complete each level, LOAD them again after dying, and
ECHO RESTART Teleglitch for the LOAD to take effect.
ECHO ~ENJOY!!
ECHO.
pause
cls
ECHO.
if not exist "teleglitch.exe" (ECHO TSU NOT INSTALLED CORRECTLY!!) ELSE GOTO MENU
ECHO.
ECHO.
ECHO / ___ ___ \
ECHO ( ^| ^| )
ECHO \ ^| ___ ^| /
ECHO.
ECHO.
ECHO TIP:
ECHO Move this utility into the same folder as Teleglitch.exe and run again.
ECHO.
ECHO.
pause
GOTO EXIT
:MENU
mode con cols=74 lines=26 >nul
cls
::ECHO ________________________ ___
::ECHO \__ ___/ _____/ ^| \
::ECHO ^~o/ ^| ^| \_____ \^| ^| /
::ECHO /^| ^| ^| / \ ^| /
::ECHO / \ ^|____^| /_______ /______/
::ECHO \/ !v!
::ECHO.
ECHO ______________, ________________________ ___ ,______________
ECHO \-' ________^| \__ ___/ _____/ ^| \ ^|________ '-/
ECHO ) _ __/ ^| ^| \_____ \^| ^| / \__ _ (
ECHO / `./_/ ^| ^| / \ ^| / \_\.` \
ECHO ^| \ ^|____^| /_______ /______/ / ^|
ECHO `---' \/ !v! '---`
ECHO.
ECHO.
ECHO What would you like to do?
ECHO.
ECHO (1) START/RESTART Teleglitch.exe
ECHO.
ECHO (2) COPY current save file
ECHO.
ECHO (3) LOAD/DELETE another save file
ECHO.
ECHO (4) HELP/INFO about this utility
ECHO.
ECHO (5) EXIT this utility AND Teleglitch
ECHO.
ECHO.
CHOICE /C:12345 /N /M "Type your selection:"
:: Note - list ERRORLEVELS in decreasing order!!!
IF ERRORLEVEL 5 GOTO EXIT
IF ERRORLEVEL 4 GOTO HELP
IF ERRORLEVEL 3 GOTO LOAD
IF ERRORLEVEL 2 GOTO COPY
IF ERRORLEVEL 1 GOTO START
:START
cls
FOR /F "usebackq" %%Z in (`TASKLIST /NH /FI "WINDOWTITLE EQ teleglitch"`) DO (
IF %%Z==INFO: GOTO RESTART
ECHO.
)
CHOICE /N /M "Are you sure you want to EXIT and RESTART Teleglitch [Y/N]?"
IF ERRORLEVEL 2 GOTO START1
IF ERRORLEVEL 1 GOTO START2
:RESTART
start "" "game.exe"
GOTO MENU
:START1
ECHO.
ECHO.
ECHO Okay then. Come back when you're man enough^^!^^! I'll be waiting...
ECHO.
ECHO.
pause
GOTO MENU
:START2
TASKKILL /F /FI "WINDOWTITLE EQ teleglitch"
FOR /F "usebackq" %%Z in (`TASKLIST /NH /FI "WINDOWTITLE EQ teleglitch"`) DO (
IF %%Z==INFO: GOTO RESTART
GOTO START2
)
:COPY
cls
ECHO.
IF NOT EXIST exitsave (ECHO NO SAVE FILE FOUND!) ELSE (GOTO COPY1)
ECHO.
ECHO.
ECHO.
ECHO / ___ ___ \
ECHO ( ^| ^| )
ECHO \ ^| ___ ^| /
ECHO.
ECHO.
ECHO.
ECHO TIP:
ECHO Complete a Teleglich level and follow the save instructions.
ECHO.
ECHO.
ECHO.
ECHO.
pause
GOTO MENU
:COPY1
SET filename=exitsave
SET firstline=
REM Read the first line of the file
FOR /F "tokens=1* usebackq delims=" %%a IN (%filename%) DO (
SET firstline=%%a
REM exit after reading the first line, or the FOR loop will read the entire file
GOTO COPY2
)
:COPY2
REM DIR /TC %1 lists the file and its creation date/time,
REM we use FINDSTR to filter the output to just the line we need
REM Assuming a MM/DD/YYYY format, this FOR loop splits the line into :
REM %%i = MM, %%j = DD, %%k = YYYY + the rest of the line...
FOR /F "delims=/ tokens=1,2,3* usebackq" %%i IN (`DIR /TC %filename% ^| FINDSTR %filename%`) DO (
REM So we need to split the %%k variable, this time with the space delimiter
REM %%a = YYYY, %%b = HH:MM, %%c = rest of the line (for determining AM/PM)
FOR /F "tokens=1,2,3,4*" %%a IN ("%%k") DO (
REM Assuming a HH:MM format, again we split the %%b variable using the ":" delimiter
REM %%x = HH, %%y = MM
FOR /F "tokens=1,2 delims=:" %%x IN ("%%b") DO (
REM let's allow for army time (24 hr clock) for better file sorting
SET clock=%%x
REM If it's PM it will add 12 to %%x
REM OR if it's AM it will add nothing and will keep the leading 0
IF "%%c" == "PM" (SET /A army=!clock! + 12) ELSE (SET /A army=0!clock! & SET army=!clock:~-2!)
REM finally, we can generate our new filename
ECHO F | XCOPY %filename% "SAVES\(%%a-%%i-%%j__!army!.%%y)%firstline%.txt" /Q /Y
ECHO F | XCOPY %filename%_stats "SAVES\(%%a-%%i-%%j__!army!.%%y)%firstline%_stats" /Q /Y
cls
ECHO.
if exist "SAVES\(%%a-%%i-%%j__!army!.%%y)%firstline%.txt" (ECHO SUCCESS^^!^^!) ELSE (GOTO COPY3)
)
)
)
)
ECHO.
ECHO (2) Files copied to Teleglitch\SAVES directory.
ECHO.
ECHO.
pause
GOTO MENU
:COPY3
ECHO ERROR^^!^^! Files not copied...
ECHO.
ECHO.
ECHO TIPS:
ECHO 1) Do you have read/write priveleges on your hard drive?
ECHO.
ECHO 2) Do you use the en-US locale? (Is your computer in US english?)
ECHO.
ECHO.
pause
GOTO MENU
:LOAD
::mode con cols=74 lines=50 >nul
cls
ECHO.
ECHO Teleglitch\SAVES
ECHO ==================
ECHO.
DIR SAVES\*.txt /B /P |FIND /V /N "//" | more
ECHO.
ECHO (Press "Q" to EXIT to the main menu)
ECHO (Press "R" to RELOAD the file list)
ECHO.
CHOICE /C DLVQR /N /M "Would you like to DELETE, LOAD, or VIEW a file [D/L/V]?"
IF ERRORLEVEL 5 GOTO LOAD
IF ERRORLEVEL 4 GOTO MENU
IF ERRORLEVEL 3 GOTO VIEW
IF ERRORLEVEL 2 GOTO LOAD1
IF ERRORLEVEL 1 GOTO DELETE
:DELETE
ECHO.
SET /P C=Choose the file number [#] to DELETE (and press ENTER):
FOR /F "usebackq tokens=1,2* delims=[]" %%d IN (`DIR SAVES\*.txt /B ^|FIND /V /N "//"`) DO (
IF /I !C! EQU q (GOTO MENU)
IF /I !C! EQU r (GOTO LOAD)
IF !C! EQU %%d (
ECHO.
CHOICE /N /M "Are you sure you want to DELETE %%e [Y/N]?"
IF ERRORLEVEL 2 GOTO LOAD
DEL /Q "SAVES\%%e"
DEL /Q "SAVES\"%%~ne"_stats"
IF EXIST "SAVES\%%e" (
IF EXIST "SAVES\"%%~ne"_stats" (
GOTO DELETE1
)
)
IF NOT EXIST "SAVES\%%e" (
IF NOT EXIST "SAVES\"%%~ne"_stats" (
GOTO DELETE2
)
)
)
)
:DELETE1
cls
ECHO.
ECHO ERROR^^!^^! Files not deleted...
ECHO.
ECHO.
ECHO TIP:
ECHO 1) Do you have read/write priveleges on your hard drive?
ECHO.
ECHO 2) Did you input a valid selection?
ECHO.
ECHO.
pause
GOTO LOAD
:DELETE2
cls
ECHO.
ECHO SUCCESS^^!^^!
ECHO.
ECHO (2) Files deleted.
ECHO.
ECHO.
pause
GOTO LOAD
:LOAD1
ECHO.
SET /P C=Choose the file number [#] to LOAD (and press ENTER):
FOR /F "usebackq tokens=1,2* delims=[]" %%d IN (`DIR SAVES\*.txt /B ^|FIND /V /N "//"`) DO (
IF /I !C! EQU q (GOTO MENU)
IF /I !C! EQU r (GOTO LOAD)
IF !C! EQU %%d (
ECHO F | XCOPY "SAVES\%%e" exitsave /Q /Y
ECHO F | XCOPY "SAVES\"%%~ne"_stats" exitsave_stats /Q /Y
)
)
cls
ECHO.
IF EXIST exitsave (
IF EXIST exitsave_stats (
GOTO LOAD2
)
)
IF NOT EXIST exitsave (
IF NOT EXIST exitsave_stats (
GOTO LOAD3
)
)
:LOAD2
ECHO SUCCESS^^!^^!
ECHO.
ECHO (2) Files copied to the main Teleglitch directory.
ECHO.
ECHO.
CHOICE /N /M "Do you want to RESTART Teleglitch now for the LOAD to take effect? [Y/N]"
IF ERRORLEVEL 2 GOTO START1
IF ERRORLEVEL 1 GOTO START2
GOTO MENU
:LOAD3
ECHO ERROR^^!^^! Files not copied...
ECHO.
ECHO.
ECHO TIP:
ECHO 1) Do you have read/write priveleges on your hard drive?
ECHO.
ECHO 2) Did you input a valid selection?
ECHO.
ECHO.
pause
GOTO LOAD
:VIEW
ECHO.
ECHO TIP:
ECHO This directory will refresh if you make an invalid input.
ECHO.
ECHO.
SET /P C=Choose the file number [#] to VIEW (and press ENTER):
FOR /F "usebackq tokens=1,2* delims=[]" %%d IN (`DIR SAVES\*.txt /B ^|FIND /V /N "//"`) DO (
IF !C! EQU %%d (
IF /I !C! EQU q (GOTO MENU)
IF /I !C! EQU r (GOTO LOAD)
cls
TYPE "SAVES\%%e"
ECHO.
pause
)
)
GOTO LOAD
:HELP
cls
ECHO.
ECHO 1) This utility was made in my spare time so there is NO gaurantee that
ECHO I will ever keep this updated^^!
ECHO.
ECHO 2) This utility works no matter where Teleglitch is installed, BUT it
ECHO assumes that you have read/write priveleges as well as HAVEN'T
ECHO modified any filenames or folder structure in the Teleglitch
ECHO directory^^!^^!^^!
ECHO.
ECHO 3) This was made on WINDOWS 7 64bit with an en-US locale so if your
ECHO locale is set to any other language (including British English) then
ECHO it will /PROBABLY/ break my COPY and LOAD functions.
ECHO.
ECHO 4) That being said, this utility /SHOULD/ work correctly on all WINDOWS
ECHO machines from XP on... (EXCEPT if you use XP Home edition, then that
ECHO will break my RESTART function).
ECHO.
ECHO 5) Why the heck did I choose to make this in the .BAT language? Because
ECHO I like challenges, I don't own any Mac/Linux/etc machines, and
ECHO haven't learned any of the other coding languages...
ECHO.
ECHO 6) But .BAT sucks^^!^^!^^!^^!^^!^^!^^!11^^!^^!^^!1
ECHO.
ECHO Shut up and don't use this utility then. ,^^!, (*_*) ,^^!,
ECHO.
pause
GOTO MENU
:EXIT
cls
ECHO.
CHOICE /N /M "Are you sure you want to EXIT TSU AND Teleglitch [Y/N]?"
IF ERRORLEVEL 2 GOTO MENU
FOR /F "usebackq" %%Z in (`TASKLIST /NH /FI "WINDOWTITLE EQ teleglitch"`) DO (
IF %%Z==INFO: GOTO EXIT1
ECHO.
TASKKILL /F /FI "WINDOWTITLE EQ teleglitch"
)
:EXIT1
cls
PING localhost -n 1 >nul
ECHO.
ECHO.
ECHO H
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO Ha
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO Hav
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO Have
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Have a
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Have a b
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Have a bl
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Have a ble
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Have a bles
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Have a bless
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Have a blesse
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Have a blessed
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Have a blessed d
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Have a blessed da
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Have a blessed day
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Have a blessed day^^!
PING localhost -n 1 >nul
cls
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Have a blessed day^^!^^!
PING localhost -n 3 >nul