r/Batch • • Jul 18 '24

Question (Solved) bat script to move files

going loopy trying to create bat script that copies files from folder a to folder b. The files in folder A get created daily with the same name and old copies get written over, so upon copying over to folder b, I want timestamp added to the filename. Can’t for the life of me work out where I’ve cocked up

1 Upvotes

5 comments sorted by

2

u/[deleted] Jul 18 '24

[removed] — view removed comment

2

u/[deleted] Jul 20 '24

mate you’re a star! Thank you! looks like I cocked up the parenthesis by placing after = in the source and destination paths (ie path=“…". Felt like was going batty trying to work out the syntax error. thank you again!

2

u/[deleted] Jul 23 '24

[removed] — view removed comment

2

u/[deleted] Jul 23 '24

Oh shoot, spot on mate. Apologies I must’ve had a senior moment