Open
Description
Feature Request
<-- Simply answer the question - What would you like dbachecks to do that it doesn't? -->
Current behaviour
Export-DbcConfig -Path C:\Tools\PowerDBA\dbachecks_config.txt -Force
Out-File: Could not find a part of the path 'C:\Tools\PowerDBA\dbachecks_config.json'.
New requested behaviour
Use the new switch to create the folder structure first: -CreatePath
, -ForceCreate
or whatevs
Export-DbcConfig -Path C:\Tools\PowerDBA\dbachecks_config.txt -Force -CreatePath
Add something like New-Item
when the switch is enabled.
Get-DbcConfig |
Select-Object * |
ConvertTo-Json -Depth 10 |
Out-File ( New-Item -FilePath $Path -Force ) -Force -ErrorAction Stop
Metadata
Assignees
Labels
No labels
Activity