Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-17-2010, 05:08 PM
abcdetech abcdetech is online now
Registered User
 
Join Date: 04-30-2008
Posts: 18
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
Reply With Quote
  #2  
Old 02-17-2010, 05:24 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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
Reply With Quote
  #3  
Old 02-17-2010, 05:31 PM
abcdetech abcdetech is online now
Registered User
 
Join Date: 04-30-2008
Posts: 18
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.
Reply With Quote
  #4  
Old 02-17-2010, 05:50 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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
Attached Files
File Type: bld copytest2.bld (1.7 KB, 2075 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 05:15 AM.


Copyright © 1999-2023 Kinook Software, Inc.