0
I am developing a batch program that allows capturing xml files stored locally on other computers within my network, to capture these files I am using the xcopy command, however it does not locate the folder containing the files to be copied.
in the source parameter, after the variable %mes% there is a folder for each day ex.: 01, 02, 03, and each folder of these contains several xml files. I tried to put "... %mes %* *. *" (to get all folders, and then all files), but I was unsuccessful.
xcopy /I /Y /E /C /Q /G /H /J /S " pdv-01 Fiscal Archives Fiscal Archives Electronic Documents CF-e-SAT %ano% %mes%\*.\.*" "C: Desktop Office Users RRCSAT"
The error that persists is: File not found - . 0 Copied files. Or if I just switch to ...%mes%* (only, to supposedly get everything) Error: File not found - * 0 Copied files.
So... I do this routine manually, I am automating what is done today Ctrl+C Ctrl+V. I have the folder permissions, I believe it is the way the source directory is informed. I want to copy the month folder with all subfolders and their respective xml, and this ...\\.* is the problem factor I believe.
– user162404
I don’t think I need that part of ".." At the end of the /e and /s option, all subfolders are copied. xcopy /I /Y /E /C /Q /G /H /J /S " pdv-01 Fiscal Archives Tax Archives Electronic Documents CF-e-SAT%ano%mes%mes%" "C: Desktop Office Users RRCSAT"
– Ricardo Bohner
"File not found - 0 Copied"
– user162404
This location " pdv-01 Tax Files" and a network computer? If so, why is it not in format: Sharename Computer..
– Ricardo Bohner