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 11-05-2007, 03:45 PM
lherz lherz is online now
Registered User
 
Join Date: 07-21-2005
Posts: 15
Calculate Dir tree size for DVD Burn

I am sure that I am simply overlooking something obvious, but I am trying to archive some data to DVD and want to be able to traverse a folder structure and create a DVD archive of the data.

The tree has multiple folders, many with one or more sub folders.

I am trying to determine when to stop processing and burn the files to disc, then continue. I have tried simply storing the path to each file in a variable in a vbscript, then adding the var to a Macro that the burn step uses, but since there are many small files and many directories, the string gets too long.

I thought that there should be a simple way to traverse a folder tree, storing folder names as long as the total content of the folder list was less than a pre-defined size (DVD for example) and upon reaching a folder whose contents extend beyond that boundary, include only the files in that particular folder that will not exceed the boundary when added to the folders already in the list, but have not been able to find it.

Any assistanvce would be greatly appreciated.
Reply With Quote
  #2  
Old 11-05-2007, 05:45 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
I can't think of a simple way to accomplish that. Maybe use a different type of archive media with larger capacity? Or possibly exclude files that don't need to be backed up. For instance, here's what we commonly exclude:

*.pdb
*.ncb
*.opt
*.clw
*.obj
*.pch
*.ilk
*.projdata
*.incr
*.idb
*.lib
*.exp
*.trg
*.aps
*.plg
*.scc
*.suo
/Debug
/Release
*.bak
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 02:11 PM.


Copyright © 1999-2023 Kinook Software, Inc.