/
jobs5.xml
43 lines (38 loc) · 1.47 KB
/
jobs5.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="utf-8" ?>
<!-- final version -->
<!-- base path priority -->
<!-- 1. full path specified -->
<!-- 2. command line specified -->
<!-- 3. attribute specified -->
<!-- fops -file=jobs5.xml -base-src=F:\src -base-dst=F:\dst -->
<!-- fops -d -src=C:\source\a\b\c\*\d\*.tmp -->
<!-- fops -dd -src=C:\source\a\b -->
<!-- fops -c -src=C:\source\a\?*\b\*\*.t* -dst=C:\dest\e -f -->
<!-- fops -cd -src=C:\source\b\e -dst=C:\dest -->
<!-- fops -cf -src=C:\source\b\f2.pdf -dst=C:dest\f3.pdf -->
<!-- fops -l -src=C:\a\b\?*\* -dst=C:\e\f -->
<!-- copy/move behavior: -->
<!-- if dst exists copy the source inside destination -->
<!-- otherwise copy the source as the destination -->
<!-- TODO: add force (delete read-only) & recursive to delete ?-->
<!-- <delete-dir src="a\b" force="true" recursive="true"/>-->
<jobs>
<job id="j4" base-src="C:\source" base-dst="C:\dest">
<delete src="a\b\c\*\d\*.tmp" />
<delete src="a\b\c\f1.pdb" />
<delete-dir src="a\b" />
<copy-file src="b\f2.pdf" dst="c\f3.pdf" />
<copy-dir src="b\e\" dst="\">
<exclude src="*\*.tmp" />
<exclude src="*\bin\*.pdb" />
</copy-dir>
<copy src="a\?*\b\*\*.t*" dst="e" force="true">
<exclude src="c\*" />
<exclude src="d\*" />
<exclude src="e\*" />
</copy>
<link src="\a\b\?*\*.*" dst="\e\f"/>
<move-file src="a\b\f1.doc" dst="a\c\f2.txt" />
<move-dir src="a\b" dst="a\b\c" />
</job>
</jobs>