I have a batch file created for each of the folders that I want to keep in sync. Here is the rub. For some reason, the file that I
get
is being placed in the directory of where the batch file is being run from. So my
get
command is:
"get -delete ""//fs1/FS-E/ETL/Error Reports/MF FR/*.xlsx K:\Tracking System\Error Reports\MF FR\""" ^
This batch file is being run from my desktop and when I do that, the file is dropped there. When I run it from the location:
K:\Tracking System\Error Reports\MF FR
the file is dropped there. Right now I am running the batch files manually for each location. What I want to do is to schedule the runs but only if I can make sure that the files end up in the right place.
Is there something wrong with my syntax that would keep it from placing the files at
K:\Tracking System\Error Reports\MF FR
regardless of where the batch file resides? Do I need to do an
lcd
command to change to the
K:\
drive?