1.

Solve : Run a batch file only particular dates?

Answer»

HI,

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.

Below is the code I tried:

@ECHO OFF
IF EXIST C:\test1.txt (COPY C:\test1.txt C:\test.txt) ELSE ECHO test1.txt is not found
pause



Thanks in advance
Jai

But then you haven't stated which Windows version you are using so I will assume it's XP.......

I haven't tried it but PERHAPS the AT COMMAND issued at the command prompt would call your .BAT fileI am sorry, I am working in Windows 2000 professional.Thankyou. Win 2000 Pro should have the AT command. PLEASE go to the command prompt and type AT/? to get a listing of the options or here for a command listing

Good luck



Discussion

No Comment Found