Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Script to delete VM's?

    Has anybody written a script to clean out a VM box nightly? It could run as a scheduled task. I have a group that has all VM's sent to the group email as .WAV attachment, and they want all messages to be deleted. I could just clean out the folder, but will that affect anything else?

    Charles

  • #2
    Nightly clean up

    Charles,

    Could you possibly batch the cfg command string?

    Check out chapter 3, starting on page 18 of the MG.

    4) For example: "Create a scheduled task the runs a script and deletes all messages in mailbox 200 every day"

    [note: this uses several undocumented CFG commands]



    a) Create a text file, DELETE_MSG_SCRIPT.TXT, in the ShoreWare Server directory with the following content:

    openm 200

    delallmsgs

    closem

    exit



    b) Create a batch file, DELETE_MSG_200.BAT, in the ShoreWare Server directory with the following content:

    "C:\Program Files\Shoreline Communications\ShoreWare Server\CFG.EXE" -f DELETE_MSG_SCRIPT.TXT



    c) Create a scheduled task using an appropriate scheduling tool (such as the built-in Windows tools AT.EXE, SCHTASKS.EXE or "Scheduled Tasks" from within the Control Panel) to automate the running of DELETE_MSG_200.BAT every day or multiple times a day.

    Comment


    • #3
      Fascinating....I'll have to check that out...Thanks!

      Comment


      • #4
        Nice works like a charm good job
        Sergio Valles
        [email protected]
        # 909-972-0398 Direct
        Certified ShoreTel Engineer
        http://www.intelesysone.com

        Comment


        • #5
          Killer post.

          delallmsgs =

          Comment

          Working...
          X