View Full Version : Copy File (include folders)
abcdetech
02-17-2010, 05:08 PM
I have this folder structure:
source\A1
source\C2
.....
source\XYZNNNNNNN
I want to copy just certain folders which I want to specify in Include. Everything else should be excluded.
For example,
I want to copy just two folders: source\A1 and source\C2
all other folders source\NNNNN should not be copied.
thanks
kinook
02-17-2010, 05:24 PM
Specify a Source folder of source and Include of
/A1
/C2
and check Copy subdirectories.
http://www.kinook.com/VisBuildPro/Manual/copyfilesactioncopytab.htm
http://www.kinook.com/VisBuildPro/Manual/filematching.htm
abcdetech
02-17-2010, 05:31 PM
I did it exactly like you said. But it also copies all folders which I don't want to be copied.
/A1
/B2
/C3
and everything else got copied. I though it will exclude everything else what is not included in Include.
kinook
02-17-2010, 05:50 PM
I'm not sure -- the attached project works as expected:
2/17/2010 3:48:38 PM: -------------------- Starting Build: 'CopyTest2.bld' --------------------
2/17/2010 3:48:38 PM: Building project step 1 - Project steps...
2/17/2010 3:48:38 PM: Building project step 2 - Delete Folder...
Folder 'c:\Temp\VisBuildCopyTest' does not exist, not deleting
2/17/2010 3:48:38 PM: Building project step 3 - Create test file1...
Creating file c:\Temp\VisBuildCopyTest\source\A1\test.txt
2/17/2010 3:48:38 PM: Building project step 4 - Create test file2...
Creating file c:\Temp\VisBuildCopyTest\source\B2\test.txt
2/17/2010 3:48:38 PM: Building project step 5 - Create test file3...
Creating file c:\Temp\VisBuildCopyTest\source\C2\test.txt
2/17/2010 3:48:38 PM: Building project step 6 - Create test file4...
Creating file c:\Temp\VisBuildCopyTest\source\XYZNNNNNNN\test.tx t
2/17/2010 3:48:38 PM: Building project step 7 - Copy Files...
c:\Temp\VisBuildCopyTest\source\ -> c:\Temp\VisBuildCopyTest\dest\
New Folder: A1\
New File: A1\test.txt
New Folder: C2\
New File: C2\test.txt
2 file(s) copied, 0 file(s) skipped
2/17/2010 3:48:38 PM: Build successfully completed.
http://www.kinook.com/Forum/showthread.php?threadid=3044
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.