Skip to content
This help is for an older version, WinCatalog 2026. Open this page in the help for WinCatalog 2027
Examples of Command Files

Examples of Command Files

Example of a command file (add-drive.cmd):

@echo Adding Disk E:\ to the Catalog

@set wcat=“C:\Program Files (x86)\WinCatalog\WinCatalog.exe”

@call %wcat% -Open “D:\My Catalog.w3cat” -Add -FileSystemPath “E:” -CatalogPath “Catalog\Backups”

Explanation

  • Print the “Adding Disk E:\ to the Catalog” message;

  • Copy path to WinCatalog executable into the wcat variable;

  • Start WinCatalog, open the catalog file “D:\My Catalog.w3cat”, add disc E: into the “Catalog\Backups” catalog folder.

Another example of a command file (update-folder.cmd):

@echo Updating folder T:\Documents to the Catalog

@set wcat=“C:\Program Files (x86)\WinCatalog\WinCatalog.exe”

@call %wcat% -Open “D:\My Catalog.w3cat” -Update -CatalogPath “Catalog\2019\Documents” -ExitWhenDone

Explanation

  • Print the “Updating folder T:\Documents to the Catalog” message;

  • Copy path to WinCatalog executable into the wcat variable;

  • Start WinCatalog, open the catalog file “D:\My Catalog.w3cat”, update the “Catalog\2019\Documents”, exit when operation is completed.

Updating 3 folders one-by-one (update-3-folders.cmd):

@echo Updating 3 folders

@set wcat=“C:\Program Files (x86)\WinCatalog\WinCatalog.exe”

@call %wcat% -Open “D:\My Catalog.w3cat” -Update -CatalogPath “2019\Documents;2019\Photos;Public on {@dslash}Server” -ExitWhenDone

Explanation

  • Print the “Updating 3 folders” message;

  • Copy path to WinCatalog executable into the wcat variable;

  • Start WinCatalog, open the catalog file “D:\My Catalog.w3cat”, update 3 folders one-by-one: “Catalog\2019\Documents”, “Catalog\2019\Photos”, “Catalog\Public on \\Server”, exit when operation is completed.

  • Please note that in this example the name of the root folder (“Catalog”) is skipped, double slash is replaced by {@dslash}.