mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-05 22:28:31 +00:00
More microwin files to delete (#4050)
This commit is contained in:
@@ -1,20 +0,0 @@
|
|||||||
function Invoke-AutoConfigDialog {
|
|
||||||
|
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Sets the automatic configuration file based on a specified JSON file
|
|
||||||
#>
|
|
||||||
|
|
||||||
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
|
|
||||||
$OFD = New-Object System.Windows.Forms.OpenFileDialog
|
|
||||||
$OFD.Filter = "JSON Files (*.json)|*.json"
|
|
||||||
$OFD.ShowDialog()
|
|
||||||
|
|
||||||
if ($OFD.FileName -eq "")
|
|
||||||
{
|
|
||||||
Write-Host "No automatic config file has been selected. Continuing without one..."
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return $OFD.FileName
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user