This project is read-only.

Duplica Documentation


SYNOPSIS

duplica [options] source [destination]

DESCRIPTION

Duplicate a file passed as source parameter N time in desired destination.

OPTIONS


-n,
--number-of-times=NUMBER
Duplicate source NUMBER times into the destination starting from counter value (see -c).
-t,
--timestamp
Add time stamp to the name for each new coopy
-c,
--counter-start=NUMBER
Add counter starting from NUMBER, instead a time stam (see -t option).
It obeys NUMBER positions unless -x, --no-leading-zero is applied -
e.g. a 00111 NUMBER value will be incremented as 00112, 00113 etc.,
if -x --no-leading-zero is missing and 111,112,113, etc when applied.
If both -c and -t optioins are set -c (counter) will be used.
If parameter missed counter will be 1.
-x,
--no-leading-zero
Deny zeroes in empty position if counter applyed (-c option).
-p,
--prepend
Prepend unique number (see -t or -c option).
If option not presented, the number will be appended (by defaut).
-r
--rename-source=on
Switch renaming source file.(on by defaut).
If --rename-source=on and destination is different than source,
than source will be moved to destination. If destination filename
is different than source, than source will be renamed and moved.
-v,
--verbose
Display operation info (off by default).
-h,
--help
Display this message.
source
File that will be duplicated.
destination
Destination where duplicated files will be paced. If missing file(s) will be placed where the source is.

EXAMPLES

duplica test.txt
Create one copy of the file 'test.txt' as 'test_1.txt' in the current folder.
diplica text.txt "c:\Program Files\My Files\"
Create one copy of the file 'test.txt' as "c:\Program Files\My Files\test_1.txt".
diplica text.txt "c:\Program Files\My Files\foo.bar"
Create one copy of the file 'test.txt' as "c:\Program Files\My Files\foo_1.bar".
A number will be places at the end of the file name, just before the extension.
diplica -p text.txt "c:\Program Files\My Files\"
Create one copy of the file 'test.txt' as "c:\Program Files\My Files\1_test.txt".
A number will be places in the begining of the file name.
diplica -n 5 -p text.txt
Create five copies of the file 'test.txt' from '1test.txt' to '5test.txt'.
A number will be places in the begining of the file name.
diplica -n 2 -c 100 text.txt
Create five copies of the file 'test.txt' appending a counter starting from 100.
As a result, in current folder will be created 'test101.txt' and 'test102.txt'.
diplica -n 2 -c 00100 text.txt
If there is leading zeros in the counter positions (five in this case) will be obeyed
if -x parameter is missing.
As a result, in current folder will be created 'test00101.txt' and 'test00102.txt'.

DOWNLOAD

Last verion is available from https://duplica.codeplex.com/
Discussions https://duplica.codeplex.com/discussions
Please report issues to https://duplica.codeplex.com/workitem/list/basic

Last edited Mar 28, 2014 at 8:34 AM by ivostoykov, version 8