I have the task of making a reminder to always download the latest master data in .bat
something like this is the script:
@echo off
set month=%date:~4.2%
set day=%date:~7.2%
if exists "D:/POS_VB/TERIMA/DATA%date:~7.2%%date:~4.2%.7z" (
msg * Thank You! you have downloaded the master data today
exit
) else (
msg * You don't have today's master data, download it now!
exit
)
even though the file you are looking for is still in D:/POS_VB/TERIMA. should be able to display the results of the first if.
New contributor
Rudi Gunawan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.