Check for file if exist and rename it
Posted: 09 Feb 2016 07:53
Hey guys, im coding a script , trying to automatize some task i use all days... so im gonna copy the script to make you an idea how its must look like
all i want is to copy the posdpofe.dbf file from server_xxx to final server... but i become the error The specified unity is not valid. 0 files copied from.
can anyone help me ? i m stuck at this..
Code: Select all
@echo off
set /P servidor_inicial = server_
set /P servidor_final = server_
xcopy /s \\server_%servidor_inicial%\fasapos\posdpofe.dbf \\server_%servidor_final%\fasapos
pause
all i want is to copy the posdpofe.dbf file from server_xxx to final server... but i become the error The specified unity is not valid. 0 files copied from.
can anyone help me ? i m stuck at this..