[stackoverflow] [progress Openedge Abl] Copy File Batch Script In W2k12 - File Not Found

Status
Not open for further replies.
J

Josef

Guest
I have script for generating file:

@echo on
FOR /f %%a IN ('WMIC OS GET LocalDateTime ^| FIND "."') DO SET DTS=%%a
SET DateTime=%DTS:~0,4%-%DTS:~4,2%-%DTS:~6,2%_%DTS:~8,2%-%DTS:~10,2%-%DTS:~12,2%

set FileName3=rn-%DateTime%.sql

createfile.exe racuni > "D:\mysql_backup\%FileName3%"

copy @FileName3 \\myserver\backup


Creating files works fine but copy to another place doesn't. I get error message that files not exist. I belive that is something wrong in this line:

copy @FileName3 \\myserver\backup

Continue reading...
 
Status
Not open for further replies.
Top