I have a file.sql
in Windows
and I would like to check if the file modified date is equal to some date with a if statement
.
It will check in a batch file
.
This is the idea to get de date:
for %a in (file.sql) do set FileDate=%~ta
But I need that with a condition and if the condition is true, It will execute a sqlcmd command.
Aucun commentaire:
Enregistrer un commentaire