aboutsummaryrefslogtreecommitdiff
path: root/dists/win32
diff options
context:
space:
mode:
authorTravis Howell2012-01-24 11:42:01 +1100
committerTravis Howell2012-01-24 11:42:01 +1100
commitaacf57ee85346e97c9533208e13997624abc17a8 (patch)
treeb746fe7c78a37abdbe066d23a2f9d8df170fd879 /dists/win32
parent3ae9b947fde55a5ce0d0557b9633b61bb9a43f8b (diff)
downloadscummvm-rg350-aacf57ee85346e97c9533208e13997624abc17a8.tar.gz
scummvm-rg350-aacf57ee85346e97c9533208e13997624abc17a8.tar.bz2
scummvm-rg350-aacf57ee85346e97c9533208e13997624abc17a8.zip
BUILD: Add batch script for migration of saved games location in Windows NT4 onwards.
Diffstat (limited to 'dists/win32')
-rw-r--r--dists/win32/migration.bat51
1 files changed, 51 insertions, 0 deletions
diff --git a/dists/win32/migration.bat b/dists/win32/migration.bat
new file mode 100644
index 0000000000..2bba7baef4
--- /dev/null
+++ b/dists/win32/migration.bat
@@ -0,0 +1,51 @@
+:: Script for migrating saved games in Windows 2000/XP/Vista/7
+::
+:: Put this batch file into the ScummVM directory
+:: This script will copy any saved games located in the
+:: old default location, to the new default location.
+::
+:: (c) 2012 ScummVM Team
+::
+
+@echo off
+echo ScummVM Saved Games Migration Script
+echo The default location for saved games changed
+echo in Windows NT4/2000/XP/Vista/7 for ScummVM 1.5.0
+echo This script will copy any saved games stored in
+echo the old default location, to the new default location
+pause
+
+if defined APPDATA goto :test2
+echo.
+echo Unable to access the Application Data variable!
+pause
+goto :eof
+
+:test2
+if exist "%APPDATA%" goto :test3
+echo.
+echo Application Data directory doesn't exist!
+pause
+goto :eof
+
+:test3
+if exist "%APPDATA%\ScummVM\" goto :test4
+echo.
+echo ScummVM Application Data directory doesn't exist!
+pause
+goto :eof
+
+:test4
+if exist "%APPDATA%\ScummVM\Saved Games\" goto :copyfiles
+echo.
+echo ScummVM Saved Games directory doesn't exist!
+pause
+goto :eof
+
+:copyfiles
+echo Copying ScummVM Saved Games...
+xcopy /EXCLUDE:migration.txt /F /-Y * "%APPDATA%\ScummVM\Saved Games"
+
+echo.
+echo All saved games have been copied to the new location of "%APPDATA%\ScummVM\Saved Games"
+pause