Polenta XCopy - PXCopy
Description
PXCopy is a powerful file copying utility with two main modes: copy files by date range (e.g. last 7 days), or copy from tree A to tree B only when the file already exists in B and is older (update-existing mode). Perfect for backing up recent files, syncing two directory trees, or archiving by modification time.
Platform: Windows 10/11 (x64)
License: Freeware
Version: 1.0.0
Features
PXCopy provides flexible file copying with date-based filtering:
-
Source Pattern (
-s, --source)
Specify source files using glob patterns like"path/*.txt"or"C:\Documents\*.docx". -
Destination Directory (
-d, --dest)
Set the destination folder where files will be copied. -
Date Range Options
Filter files by modification date using multiple convenient methods:--start-date/--end-date- Specific date range (YYYY-MM-DD)--past-weeks- Files from N weeks ago--past-days- Files from N days ago--past-hours- Files from N hours ago--past-mins- Files from N minutes ago
-
Update-existing mode (
-u, --update-existing)
Copy from source tree to destination tree only when the file already exists in the destination (same relative path) and the destination file is older (less recent modification date). No date range is required. Ideal for syncing two trees or refreshing only outdated copies. Uses modification date only for the comparison. -
Flexible Time Selection
Use the most specific time unit available. Minutes take priority over hours, which take priority over days, and so on. -
Lightweight & Portable
Single executable with no installation required. Perfect for backup scripts. -
Quick Links (
-ws, --website/-don, --donate)
Open the Polenta Connection website or donate page directly from the command line.
Usage
PXCopy.exe -s <source-pattern> -d <destination> [date-options]
PXCopy.exe -s <source-pattern> -d <destination> -uUpdate-existing mode (no date range)
Examples
By date range
PXCopy.exe -s "C:\Files\*.txt" -d "C:\Backup" --past-days 7Copy all .txt files modified in the last 7 days
PXCopy.exe -s "*.docx" -d "D:\Archive" --past-hours 24Copy all Word documents modified in the last 24 hours
PXCopy.exe -s "C:\Projects\*.*" -d "E:\Backup" --start-date 2024-01-01 --end-date 2024-12-31Copy all files modified in 2024
PXCopy.exe -s "C:\Logs\*.log" -d "D:\Recent" --past-mins 60Copy log files modified in the last hour
Update-existing mode (copy only if file exists in destination and is older)
PXCopy.exe -s "C:\TreeA\*.*" -d "C:\TreeB" -uCopy from TreeA to TreeB only where the file exists in TreeB and is less recent
PXCopy.exe -s "D:\Source\*.xml" -d "D:\Dest" --update-existingUpdate only .xml files that already exist in Dest and are older than in Source