I wonder if I could help to do the following:
Search the PC (all units) all autocad files (* .DWG) and word (* .doc) and copy them to a new route from my server; the first time it is run must be a FULL and then just changed the date of FULL files are copied.
I have tried to use the following:
mkdir \\server1\j$\bk_user\%computername%\FULL\%date:~6,4%-%date:~3,2%-%date:~0,2%\a_ofim\
FORFILES /P C:\ /S /M *.doc* /C "cmd /c COPY @file \\server1\j$\bk_user\%computername%\FULL\%date:~6,4%-%date:~3,2%-%date:~0,2%\a_ofima\"
FORFILES /P C:\ /S /M *.dwg /C "cmd /c COPY @file \\server1\j$\bk_user\%computername%\FULL\%date:~6,4%-%date:~3,2%-%date:~0,2%\a_ofim\"
The point is that I do not know how to:
Search all hard drives, my current code only searches drive C: (I was thinking of placing a line with "if exist D: \ goto diskD" and so for each disc, but I'm not sure if there is another more efficiently
That every time you find and copy the file, copy it maintaining its original folder structure, because then no one knows where it came from that file because the places all together.
I hope you can help me ..