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 Collection.w3cat" -Add -FileSystemPath "E:" -CatalogPath "Collection\Backups"
Explanation
-
Print the "Adding Disk E:\ to the Catalog" message;
-
Copy path to WinCatalog executable into the
wcat variable;
-
Start WinCatalog, open collection file "D:\My Collection.w3cat", add disc E: into the "Collection\Backups" collection 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 Collection.w3cat" -Update -CatalogPath "Collection\2015\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 collection file "D:\My Collection.w3cat", update the "Collection\2015\Documents", exit when operation is completed.