1.

Solve : Run a batch file only particular dates?

Answer» <html><body><p>HI,<br/><br/>I am new to this forum. I have to copy a file to a particular directory. Can any one help me how can a batch file run on particular dates? For example, my task is to run this batch file only on 13,14,15 and 16 of every month.<br/><br/>Below is the code I tried:<br/><br/>@ECHO OFF<br/>IF EXIST C:\test1.txt (COPY C:\test1.txt C:\test.txt) ELSE ECHO test1.txt is not found<br/>pause<br/><br/><br/><br/>Thanks in advance<br/>Jai<br/><br/>But then you haven't stated which Windows version you are using so I will assume it's XP.......<br/><br/>I haven't tried it but <a href="https://interviewquestions.tuteehub.com/tag/perhaps-7377675" style="font-weight:bold;" target="_blank" title="Click to know more about PERHAPS">PERHAPS</a> the AT <a href="https://interviewquestions.tuteehub.com/tag/command-11508" style="font-weight:bold;" target="_blank" title="Click to know more about COMMAND">COMMAND</a> issued at the command prompt would call your .<a href="https://interviewquestions.tuteehub.com/tag/bat-394554" style="font-weight:bold;" target="_blank" title="Click to know more about BAT">BAT</a> fileI am sorry, I am working in Windows 2000 professional.Thankyou. Win 2000 Pro should have the AT command. <a href="https://interviewquestions.tuteehub.com/tag/please-601513" style="font-weight:bold;" target="_blank" title="Click to know more about PLEASE">PLEASE</a> go to the command prompt and type AT/? to get a listing of the options or <a href="https://www.microsoft.com/windows2000/en/server/help/default.asp?url=/windows2000/en/server/help/ntcmds.htm"> here</a> for a command listing<br/><br/>Good luck</p></body></html>


Discussion

No Comment Found