@echo off
rem ** Backup script for NWN2 Directory Mode Modules
**
rem ** The usual disclaimer applies - If you use it, it's your own fault **
rem ** Configuration **
set SourceFolder=C:\Documents and Settings\User\My Documents\Neverwinter Nights 2\modules\My Module
set DestinationFolder=C:\Documents and Settings\User\My Documents
\Neverwinter Nights 2\modules\
Backup MyModuleMy Module
rem ** **
for /f "tokens=2-4 delims=/ " %%g in ('date /t') do (
set mm=%%g
set dd=%%h
set yy=%%i
)
for /f "tokens=1-2 delims=: " %%j in ('time /t') do (
set hh=%%j
set mn=%%k
)
if exist "%DestinationFolder%\%yy%-%mm%-%dd%-%hh%%mn%" (
rd /S /Q "%DestinationFolder%\%yy%-%mm%-%dd%-%hh%%mn%"
)
xcopy "%SourceFolder%" "%DestinationFolder%\%yy%-%mm%-%dd%-%hh%%mn%" /s /i
ZORK RtGUE now on The Neverwinter Vault!
10 years ago
3 comments:
Good call, bud - backups are just a double-click away!
Easily modifiable for multiple modules and a campaign directory as well.
Just wait 'til the Martians hear about this one!
hehe is that the mysterious thief in the screenshot?
Hey guys, there is a Zork 1 Map on eBay, looks like it is going cheap (for now)
Post a Comment