Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Copy File (include folders) (https://www.kinook.com/Forum/showthread.php?t=4402)

abcdetech 02-17-2010 04:08 PM

Copy File (include folders)
 
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 04:24 PM

Specify a Source folder of source and Include of

/A1
/C2

and check Copy subdirectories.

http://www.kinook.com/VisBuildPro/Ma...ioncopytab.htm
http://www.kinook.com/VisBuildPro/Ma...lematching.htm

abcdetech 02-17-2010 04: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 04:50 PM

1 Attachment(s)
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/showthre...?threadid=3044


All times are GMT -5. The time now is 03:43 AM.


Copyright © 1999-2023 Kinook Software, Inc.