title: powershell copy all folders and files in folder
body: <p>Probably very easy for you guys.</p>
  
  <p>I want to copy all the folders and files from this path c:\default\
  to this destination c:\environment\customfolder\
  in the folder customerfolder are other folders with different names.
  It should only copy the files and folders to the destination Where the customfolder contains the name DEMO_test</p>
  
  <p>What is the best and easiest way to do that?
  should I use for-each?</p>
  
  <h1>thanks for your help.</h1>
  
  <p>Sorry I should be more clear. ;-)</p>
  
  <p>I have a folder c:\default</p>
  
  <p>All the files and sub-folders in that folder c:\default</p>
  
  <p>should be copied to these folders</p>
  
  <p>c:\environment\customfolder\demo_test</p>
  
  <p>c:\environment\customfolder\demo_test01</p>
  
  <p>c:\environment\customfolder\demo_test02</p>
  
  <p>c:\environment\customfolder\demo_test03</p>
  
  <p>I know it should be possible to copy all files and sub-folders from this path (source)c:\default\</p>
  
  <p>to this path (destination)c:\environment\customfolder\</p>
  
  <p>And only copy it to the folders if they have the name (like) demo_test*</p>
  
  <p>Is that question better?</p>
  
  <p>thanks.</p>