/ Published in: Bash
Expand |
Embed | Plain Text
REM editar el path y la búsqueda. dir \\server\directorio\de\origen\*busqueda* /b >> temp.txt REM editar el path de origen (igual al anterior) y de destino for /f %%f in (to_copy.txt) do ( xcopy /y \\server\directorio\de\origen\%%f c:\directorio\de\destino ) del temp.txt PAUSE
Comments
Subscribe to comments
You need to login to post a comment.

Con este código además creas la conexión con usuario y password:
@echo off set fichtemp="C:\prueba\temporal.txt" net use J: /delete /y net use J: \servidor\recurso$ /user:dominio\usuario password dir \servidor\recurso$*busqueda* /b >> %fichtemp% type %fichtemp% |sort |more pause