Skip to content

Instantly share code, notes, and snippets.

@hidori
Created April 2, 2013 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hidori/5291140 to your computer and use it in GitHub Desktop.
Save hidori/5291140 to your computer and use it in GitHub Desktop.
「PowerShell で空の MDB ファイルを作る」サンプルです。
$FileName = "C:\Users\Public\Documents\hoge.mdb"
$Parameters = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=$FileName"
$Catalog = New-Object -ComObject "ADOX.Catalog"
$Mdb = $Catalog.Create($Parameters)
$Mdb.Close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment