create_data_containers.ps1 339 B

123456789101112
  1. param (
  2. [Parameter(Mandatory=$true)]
  3. [string]$DatabaseName
  4. )
  5. Set-Location $(Split-Path $MyInvocation.MyCommand.Path -Parent)
  6. foreach ($file in $(Get-ChildItem -Path ".\data_containers")) {
  7. if ($file.GetType() -eq [System.IO.FileInfo]) {
  8. datactl.exe offline database create_dc $DatabaseName -f $file.FullName
  9. }
  10. }