@ECHO OFF
@ECHO *** RESPALDANDO INFORMACION DEL EQUIPO ***
SET FOLDER=%date:~0,2%-%date:~3,2%-%date:~6,4%
SET BACKUPCMD=XCOPY /S /C /D /E /H /I /R /Y
SET i=1
IF EXIST "C:RespSist_"%FOLDER%-%i%. (set /a i=i+1)
MKDIR "C:RespSist_"%FOLDER%-%i%
MKDIR "C:RespSist_%FOLDER%-%i%Mis Documentos"
MKDIR "C:RespSist_%FOLDER%-%i%Escritorio"
%BACKUPCMD% "C:Documents and settingsUsuario1Mis Documentos". "C:RespSist_%FOLDER%-%i%Mis Documentos"
%BACKUPCMD% "C:Documents and settingsUsuario1Escritorio". "C:RespSist_%FOLDER%-%i%Escritorio"
goto salir
ELSE (goto comprobar)
:comprobar
IF NOT EXIST "C:RespSist_"%FOLDER%-%i% MKDIR "C:RespSist_"%FOLDER%-%i%
IF NOT EXIST "C:RespSist_%FOLDER%-%i%Mis Documentos" MKDIR "C:RespSist_%FOLDER%-%i%Mis Documentos"
IF NOT EXIST "C:RespSist_%FOLDER%-%i%Escritorio" MKDIR "C:RespSist_%FOLDER%-%i%Escritorio"
%BACKUPCMD% "C:Documents and settingsUsuario1Mis Documentos". "C:RespSist_%FOLDER%-%i%Mis Documentos"
%BACKUPCMD% "C:Documents and settingsUsuario1Escritorio". "C:RespSist_%FOLDER%-%i%Escritorio"
:salir