@ECHO OFF
MOUNTVOL /R
set tiempo=%time:~0,5%
set tiempo=%tiempo::=-%
set fecha=%date:~0%
set fecha=%fecha:/=-%
set file=%fecha% %tiempo%
echo %file%
set ruta="D:\COPIA\%file%"
mkdir %ruta%
¿Alguien sabe que hace esto?
[MOD]: Usa el botón "Insertar código", gracias.
Copialo y pegalo en un bloc de notas y lo guardas como "prueba.bat", luego ejecútalo a ver que pasa ;-) ;-)
@ECHO OFF
MOUNTVOL /R
set tiempo=%time:~0,5%
set tiempo=%tiempo::=-%
set fecha=%date:~0%
set fecha=%fecha:/=-%
set file=%fecha% %tiempo%
echo %file%
set ruta="D:\COPIA\%file%"
mkdir %ruta%
Saludos