I have this batch file to copy and rename a file on a public directory to another public directory. The file is normally about 1600kb in size but copied only has 1kb. If I change the wildcard in the name to the real name I get the whole file copied. Problem is the file name changes after every update e.g. Name 3.25.13, Name 4.12.13 e.t.c so I have to use a wildcard unless there is any other way you can tell me, which will be very much appreciated. Here is the code for the batch:
c:
cd U:\Sourcing\Vendor Demand Planning\Master CPFR\
copy "U:\Sourcing\Vendor Demand Planning\Master CPFR\Master CPFR "*".xlsx" "U:\Sourcing\Vendor Demand Planning\Pricing Project\Master CPFR.xlsx"
Any help will be appreciated.
Bookmarks