Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Run a batch file only particular dates  (Read 4399 times)

0 Members and 1 Guest are viewing this topic.

spjamjai

  • Guest
Run a batch file only particular dates
« on: September 28, 2005, 07:12:28 AM »
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


Dusty



    Egghead

  • I could if she would, but she won't so I don't.
  • Thanked: 75
  • Experience: Beginner
  • OS: Windows XP
Re: Run a batch file only particular dates
« Reply #1 on: September 28, 2005, 03:48:01 PM »
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 file
« Last Edit: September 28, 2005, 03:51:07 PM by Dusty »
One good deed is worth more than a year of good intentions.

spjamjai

  • Guest
Re: Run a batch file only particular dates
« Reply #2 on: September 28, 2005, 11:44:04 PM »
I am sorry, I am working in Windows 2000 professional.

Dusty



    Egghead

  • I could if she would, but she won't so I don't.
  • Thanked: 75
  • Experience: Beginner
  • OS: Windows XP
Re: Run a batch file only particular dates
« Reply #3 on: September 29, 2005, 02:15:01 AM »
Thankyou.  Win 2000 Pro should have the AT command.  Please go to the command prompt and type AT/? <enter> to get a listing of the options or here for a command listing

Good luck
One good deed is worth more than a year of good intentions.