• Clean IIS Web Logs.vbs - Strips local addresses and non-interesting files out of IIS web server logs. This script contains a list of the file types (.gif, .jpg, etc) to strip from the log. MOVEit uses this script to pre-process the logs from its marketing sites.
  • CleanupFolder.vbs - This script can be used only on the local Windows file system.

    Searches through a folder and deletes any files that were last modified more than the number of days you specify with fileAgeDays, and any empty folders, regardless of age.

    To delete remote files, use a No Op task and configure a filter to download only files older than n days. (For an example, see Configuring Tasks - Processes/Scripts - Built-In - No Op.

    Parameters used by this script:

    • folderPath - The path to the folder to cleanup.
    • fileAgeDays - Files older than (this value) days are deleted.
    • includeSubfolders - If true, recurse through subfolders. Default is false.
    • deleteEmptyFolders - If true, deletes any folders that are empty. Default is false.
    • logToFile - If true, a file named CleanupFolder_yyyy-mm-dd.log is created in the folderPath directory. This log file records each file considered and whether it was deleted. Default is false.
  • FileSize.vbs - Obtains the file size from a single transferred file. This can be used in conjunction with Next Actions. Works with only one file or the last file transferred.
  • IgnoreSmallFile.vbs - Checks the size of each file processed against a minimum file size specified by the MinSize parameter. Any files smaller than the minimum are ignored.
  • Kick Off Task.vbs - Reads in from a file a "shared secret", a list of task names, and runs all the named tasks. Used by a few large companies who like to start tasks from a mainframe process. In these cases the source is a file on the mainframe's FTP server marked to be deleted after successful transfer. There is no destination.
  • OrigNames.vbs - Compiles a complete list of all the files used by task into a comma-delimited list. Used by people who want a complete list of all files processed by a task that is sent to them in Next Action emails. (The Next Action message body contains the macro [Parm:OrigNames] )
  • Ping.vbs - Pings several remote hosts to make sure they are still responding. Generates an error message if one or more of these hosts goes down. This script is used in a task with a single process and one or more Next Actions.
  • PKZipWithPass.vbs - Uses PKZip to compress a file and secure the compressed file with a password. Requires the PKZip application from PKWare.
  • PurgeStats.vbs - Purges all entries that are older than a specified limit from the statistics database. (Note: this sample script was reimplemented as the built-in Trim Statistics DB script.)
  • Run DOS Command.vbs - Executes a command specified by a task parameter, with arguments also specified by task parameters. The command would normally be a task that is run at the command line, such as zip.exe or copy . (Note: The functions of this script are also available in the built-in Command Line App script.)
  • TrimStatsDB.vbs - Goes through the MOVEit Automation statistics database and purges entries older than X days. Purged entries can be deleted, copied to text files, or sent to another database. This script is run daily by MOVEit Automation users who process large numbers of files, including most datacenters. (Note: this sample script was reimplemented as the built-in Trim Statistics DB script.) For more information, see Trimming the database.
  • WordCount.vbs - Counts the number of times a particular word appears in source files. The word to search for is configured in a task parameter. The word count, a brief report, and other information is written back into other task parameters. Note: The functions of this script are also available in the built-in script Find Or Replace.
  • ZipAllFiles.vbs - Calls a command-line zip utility to zip up a collection of downloaded files and replace them with the zip file, so that only the zip file is sent to the task destinations. You can use this script with the Run Process Once and Use Original Names for Cache Files features to zip an arbitrary collection of files and folders in one task, compared with two or more tasks for previous methods. Note: The functions of this script are also available in the built-in script ZipAdvanced.
  • ZipDir.vbs - Calls a command-line zip utility to zip a local folder and its contents. Adds the zip file to the list of sources to be processed to destinations. Note: The functions of this script are also available in the built-in script ZipAdvanced.
  • ZipExe.vbs - Uses the MOVEit Automation command-line facility to demonstrate how to zip multiple source files into a single ZIP archive. Note: The functions of this script are also available in the built-in script ZipAdvanced.