Skip to main content
TeraCopy Command Line
Updated over 3 months ago

TeraCopy can be utilized via the command line in Command Prompt, batch files, or scheduled tasks using Windows Task Scheduler.


Syntax

TeraCopy.exe Operation [*]Source [Target] [Options]

  • Operation: The action you want TeraCopy to perform.

    • Copy

    • Move

    • Delete

    • Test

    • AddList

  • Source: The file or folder to act upon.

    • Use an asterisk * before the path if specifying a file list.

    • Note: Only absolute paths are supported.

  • Target: The destination folder (required for Copy and Move operations).

  • Options: Additional parameters to control the operation.

    • /SkipAll: Skip all existing files.

    • /OverwriteOlder: Overwrite files if the source is newer.

    • /RenameAll: Automatically rename files with conflicting names.

    • /OverwriteAll: Overwrite all existing files.

    • /NoClose: Keep the TeraCopy window open after the operation completes.

    • /Close: Close TeraCopy automatically after the operation completes.


Examples

Copy a Folder to a Backup Location

TeraCopy.exe Copy "D:\My Documents" F:\Backup

Copy a Single File to a Specific Folder

TeraCopy.exe Copy D:\Video.avi "C:\My Documents"

Copy with Overwrite Older Files Option and Auto-Close

TeraCopy.exe Copy D:\Data F:\Backup /OverwriteOlder /Close

Move Files from a File List, Overwrite All, and Keep Window Open

TeraCopy.exe Move *"C:\Temp\filelist.txt" "C:\My Documents" /OverwriteAll /NoClose

Add Files from a File List to the Copy Queue

TeraCopy.exe AddList *"C:\Temp\filelist.txt"

Test the Integrity of a File

TeraCopy.exe Test D:\Video.avi

Verify Files Using a Checksum File

TeraCopy.exe D:\checksum.md5

Using File Lists

When dealing with multiple files, you can use a file list to specify all the files you want to process.

Important Notes on File Lists

  • Indicator: Always prefix the file list path with an asterisk * to indicate it's a list.

    TeraCopy.exe Copy *"C:\Temp\filelist.txt" F:\Backup

  • Path Formatting: Inside the file list, each file path:

    • Should be on a separate line.

    • Can contain spaces without needing quotation marks.

Example of a File List (filelist.txt)

D:\My Documents\Report.docx

D:\Photos\Vacation\IMG001.jpg

D:\Music\Favorite Song.mp3


Additional Information

  • Absolute Paths Only: Relative paths are not supported. Ensure all file and folder paths are absolute.

  • Options Usage: Options can be combined to customize behavior.

    • Example: /OverwriteOlder /NoClose

Did this answer your question?