Search found 2 matches

by melidrie
13 Jun 2017 07:05
Forum: DOS Batch Forum
Topic: Copy file based on Date
Replies: 3
Views: 3231

Re: Copy file based on Date

It's almost ok. What i want to do is, copy the file "test*.txt" if the Date is 02/06/2017. thats wat i insert into askDate. I dont newer then or older then. With a VBS code i got it working but i need to use it with bat SET/P "askDate=insert: " SET sourceDir=C:\mogri\1 SET target...
by melidrie
07 Jun 2017 04:09
Forum: DOS Batch Forum
Topic: Copy file based on Date
Replies: 3
Views: 3231

Copy file based on Date

Hello, I am new to this forum and i need help. What i want is to copy a file(log.txt) in folder A to Folder B based on the date that is given in the command. Eg. If i want a file from 2 january 2017 i typ in the command: 02-01-2017. Then de bat Will look in the folder on that date with the name and ...