Windows Task Scheduler Help

Osama Mansoor 86 Reputation points
2021-10-20T05:26:04.757+00:00

Hi Experts,

I have a backup script which I wanted to run DAILY every 3 hours but it's not working whats I am doing there.

The script did not run in between 11:00 PM to 11:00 AM.

141948-1.jpg

141880-3.jpg

141966-4.jpg

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

12 answers

Sort by: Most helpful
  1. Osama Mansoor 86 Reputation points
    2021-10-25T12:41:18.057+00:00

    I think some date and time part is having an issue.

    0 comments No comments

  2. Osama Mansoor 86 Reputation points
    2021-10-25T12:55:20.353+00:00

    One more comment against my logic as mention above regarding data and time.

    I have Windows Server 2003 Machine and its same script is successfully running and creating output at AM and below is the schedule.

    143434-3.jpg


  3. MotoX80 36,291 Reputation points
    2021-10-25T13:02:03.65+00:00

    Put quotes around the file names.

    Before 10 AM you will have single digits in the hour. You end up with a space in the file name and the program will see 852.dmp and 852.log as separate command line switches.

    143427-capture.jpg

    0 comments No comments

  4. Osama Mansoor 86 Reputation points
    2021-10-25T13:13:40.913+00:00

    can you please correct for me i am unable to get your point

    0 comments No comments

  5. MotoX80 36,291 Reputation points
    2021-10-25T13:24:59.117+00:00
     expdp wbg/chl@chl full=Y directory=dbbackup dumpfile="CHL_%date:~4,2%_%date:~7,2%_%date:~10,4%-%time:~0,2%%time:~3,2%.dmp" logfile="CHL_%date:~4,2%_%date:~7,2%_%date:~10,4%-%time:~0,2%%time:~3,2%.log"  
    

    The hour is "space nine", not "zero nine".

    143435-capture.jpg

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.