Created
April 2, 2013 09:50
-
-
Save hidori/5291140 to your computer and use it in GitHub Desktop.
「PowerShell で空の MDB ファイルを作る」サンプルです。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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