ECHO

MKDIR C:\FIRMWARE
DEL C:\FIRMWARE\*.*
COPY A:\FIRMWARE C:\FIRMWARE

MKDIR C:\FPGA
DEL C:\FPGA\*.*
COPY A:\FPGA C:\FPGA

MKDIR C:\VOIPDB
DEL C:\VOIPDB\*.*
COPY A:\VOIPDB C:\VOIPDB

#Lua APP
MKDIR C:\APPS
MKDIR C:\APPS\HTML
MKDIR C:\APPS\LIB
MKDIR C:\APPS\LIB\SOCKET
MKDIR C:\APPS\LIB\SSL
MKDIR C:\APPS\LIB\COPAS
MKDIR C:\APPS\LMS
MKDIR C:\APPS\LMS\SOCKET
MKDIR C:\APPS\LMS\HTML
MKDIR C:\APPS\OAUTH
MKDIR C:\APPS\OAUTH\HTML
DEL C:\APPS\HTML\*.*
DEL C:\APPS\LIB\*.*
DEL C:\APPS\LIB\SOCKET\*.*
DEL C:\APPS\LIB\SSL\*.*
DEL C:\APPS\LIB\COPAS\*.*
DEL C:\APPS\LMS\*.lua
DEL C:\APPS\LMS\i18n.def
DEL C:\APPS\LMS\manifest
DEL C:\APPS\LMS\update.cfg
DEL C:\APPS\LMS\SOCKET\*.*
DEL C:\APPS\LMS\HTML\*.*
DEL C:\APPS\OAUTH\*.lua
DEL C:\APPS\OAUTH\gmail.cfg
DEL C:\APPS\OAUTH\i18n.def
DEL C:\APPS\OAUTH\manifest
DEL C:\APPS\OAUTH\o365.cfg
DEL C:\APPS\OAUTH\dumplog.txt
DEL C:\APPS\OAUTH\logfile.txt
DEL C:\APPS\OAUTH\backup.cfg
DEL C:\APPS\OAUTH\loadconfig
DEL C:\APPS\OAUTH\update.cfg
DEL C:\APPS\OAUTH\HTML\*.*
COPY A:\APPS\HTML C:\APPS\HTML
COPY A:\APPS\LIB C:\APPS\LIB
COPY A:\APPS\LIB\SOCKET C:\APPS\LIB\SOCKET
COPY A:\APPS\LIB\SSL C:\APPS\LIB\SSL
COPY A:\APPS\LIB\COPAS C:\APPS\LIB\COPAS
COPY A:\APPS\LMS C:\APPS\LMS
COPY A:\APPS\LMS\SOCKET C:\APPS\LMS\SOCKET
COPY A:\APPS\LMS\HTML C:\APPS\LMS\HTML
#Due to the limitation when loading batch files, the number
#of characters in 1 line must be kept within 64 characters.
COPY A:\APPS\OAUTH C:\APPS\OAUTH
COPY A:\APPS\OAUTH\HTML C:\APPS\OAUTH\HTML
COPY A:\APPS\OAUTH\HTML\authorized.cgi C:\authorized.cgi
COPY C:\authorized.cgi C:\APPS\OAUTH\HTML\authorized.cgi
DEL C:\authorized.cgi 

#UC_WebApp
MKDIR C:\UC
MKDIR C:\UC\IMG
MKDIR C:\UC\LIB
MKDIR C:\UC\LANG
MKDIR C:\UC\MP3

DEL C:\UC\*.*
DEL C:\UC\IMG\*.*
DEL C:\UC\LIB\*.*
DEL C:\UC\LANG\*.*
DEL C:\UC\MP3\*.*

COPY A:\UC C:\UC
COPY A:\UC\IMG C:\UC\IMG
COPY A:\UC\LIB C:\UC\LIB
COPY A:\UC\LANG C:\UC\LANG
COPY A:\UC\MP3 C:\UC\MP3

MKDIR C:\LANG
MKDIR C:\LANG\LCS
DEL C:\LANG\LCS\*.*
COPY A:\LANG\LCS\Feature_eu.xml C:\LANG\LCS\Feature_eu.xml

DEL C:\CDSP.*
COPY A:\CDSP.BIN C:\CDSP.BIN

DEL C:\SDSP.*
COPY A:\SDSP.BIN C:\SDSP.BIN

DEL C:\EDSP.*
COPY A:\EDSP.BIN C:\EDSP.BIN

DEL C:\MAIN.*
COPY A:\MAIN.BIN C:\MAIN.BIN

DEL C:\2NDBOOT.*
COPY A:\2NDBOOT.BIN C:\2NDBOOT.BIN

DEL C:\SDX2.*
COPY A:\SDX2.BIN C:\SDX2.BIN

MKDIR C:\MUSIC
DEL C:\MUSIC\*.*
COPY A:\MUSIC C:\MUSIC
MKDIR C:\USR
MKDIR C:\USR\IMG

DEL C:\FwUp.*
DEL C:\*.run
DEL C:\VM\EMAIL\SWUD_BEF_STATUS.txt
