Announcement

Collapse
No announcement yet.

Schedule A Job To Purge A Specific Directory

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Schedule A Job To Purge A Specific Directory

    Ok, I'm officially lost. I am using Hyena 5.7c and can't seem to figure it out. I am trying to set up a schedule task / job to purge a specific directory on one of my Windows 2000 servers. I can't seem to get it to work at all. The scheduler service is running. I have Hyena running from an XP box. Suggestions / help. Thanks!

  • #2
    Re: Schedule A Job To Purge A Specific Directory

    What have you done so far, and what is it doing/not doing?

    Comment


    • #3
      Re: Schedule A Job To Purge A Specific Directory

      Well I have tried to schedule a job on the server in question by select the server and trying to schedule a job. For the run command I put:

      C:\WINNT\system32\cmd.exe delete c:\files\log\*.* /q

      However, when I run it, it does not delete anything in the log file? Thanks!

      Comment


      • #4
        Re: Schedule A Job To Purge A Specific Directory

        Windows scheduler is actually handling that, not Hyena. See if anything shows up in the log on the computer with the job. You can see this by going to c:\windows\tasks on that computer, then choosing Advanced->View Log. See if that give any clues.

        Comment


        • #5
          Re: Schedule A Job To Purge A Specific Directory

          Well, I checked the log and nothing is apparent. It said the job completed with an exit code of 80? Thoughts or suggestions? I am also open to an alternative to purging a directory of files.

          Comment


          • #6
            Re: Schedule A Job To Purge A Specific Directory

            Whenever I have a problem with a scheduled task the first thing I check is permissions. Are you running the task under an account that has enough rights to delete the files?

            Comment


            • #7
              Re: Schedule A Job To Purge A Specific Directory

              I have it working. I was trying to execute a command line task directly inside the task itself. I took they easier root and made a .bat file and call that .bat file via a schedule. Works like a charm.

              Comment

              Working...
              X