How do I verify if a file exists and it's from today?
问题 I have this BATCH file, How to make sure the source file C:\file.zip exist and it's today's file, before applying the copy submission? following is not working when I tried: echo off cls echo will do a back if [ C:\file.zip ] then echo found, will validate if its the file created today? copy C:\file.zip "\\to_computer_of_enterprise\\granted\\to\\upload\\here" else: echo sorry do not exist fi 回答1: Here is a batch code not using command forfiles which is by default not available on Windows XP