I am new at working with the batch scripts and I have got a scenario which i have to take care very soon. I have a batch script that is responsible to send sms to the users. I want this batch script to run once a day only no matter how many times I try to execute it. Thanks in advance
I am curious. Why would you ask users to run the batch file?
You should look at scheduling commands using SCHTASKS
, the Task Scheduler on Windows 10.
See: https://www.windowscentral.com/how-create-task-using-task-scheduler-command-prompt
If you insist on user run batch file, you have to use some kind of persistent run-once flag. You could implement something using the following logic: