Wednesday 22 May 2013

How To Copy or Move Different type of Files From a Folder to Diffrernt Folders According to Type of files


For This :-

You will need a directory named sampleFiles containing a set of files with different extensions, including .txt and .xls. You will also need three destination directories,
Named relevant  to Type of files..
txtFiles, xlsFiles and OtherFiles.

Carry out the following steps:
1. Create a new job and drop a Start job entry into the canvas.

2. Add a Copy Files job entry. In this entry, you will add the directions for copying the files into the three available destination folders. Double-click on the entry to open it.

3. In the File/Folder source textbox, type or browse for the sampleFiles folder. In the File/Folder destination, type or browse for the txtFiles folder. Also, type .*\.txt in the Wildcard (regExp) textbox. Click on the Add button.

4. In the File/Folder source textbox, type or browse for the sampleFiles folder. In the File/Folder destination, type or browse for the xlsFiles folder. Also, type .*\.xls in the Wildcard (regExp) textbox. Click on the Add button.

5. In the File/Folder source textbox, type or browse for the sampleFiles folder. In
the File/Folder destination, type or browse for the OtherFiles folder. Also, type
.+(?<!(txt|xls))$ in the Wildcard (regExp) textbox. Click on the Add button.

6. Assuming that all folders are inside the directory where you have your job, the Files/ Folders grid will look like the following screenshot:
















No comments:

Post a Comment