# Invoke-BluGenieFileBrowser

﻿

### Invoke-BluGenieFileBrowser <a href="#invoke-blugeniefilebrowser" id="invoke-blugeniefilebrowser"></a>

### SYNOPSIS <a href="#synopsis" id="synopsis"></a>

Invoke-BluGenieFileBrowser will display a graphical user interface to select a file

### SYNTAX <a href="#syntax" id="syntax"></a>

```
Invoke-BluGenieFileBrowser [[-Filter] <String>] [[-InitialDirectory] <String>] [-Multiselect] [[-Description] <String>] [-Walkthrough] [<CommonParameters>]
```

### DESCRIPTION <a href="#description" id="description"></a>

Invoke-BluGenieFileBrowser will display a graphical user interface to select a file.

By default all files are shown in the GUI

### EXAMPLES <a href="#examples" id="examples"></a>

#### EXAMPLE 1 <a href="#example-1" id="example-1"></a>

```
$MyFile = Invoke-BluGenieFileBrowser
```

```
This will display a GUI to select a single file.  The initial directory will be the root directory.
```

#### EXAMPLE 2 <a href="#example-2" id="example-2"></a>

```
$MyFile = Invoke-BluGenieFileBrowser -Filter *.json -initialDirectory C:\Temp
```

```
This will dispaly a GUI to select a single JSON file.  The initial direcotry will be the C:\Temp directory.
```

#### EXAMPLE 3 <a href="#example-3" id="example-3"></a>

```
$MyFiles = Invoke-BluGenieFileBrowser -Filter *.json -initialDirectory C:\Temp -Multiselect
```

```
This will dispaly a GUI to select multiple JSON files.  The initial direcotry will be the C:\Temp directory.
```

#### EXAMPLE 4 <a href="#example-4" id="example-4"></a>

```
Invoke-BluGenieFileBrowser -Help
```

```
This will display the dynamical help to walk you through all the parameters for this function.
```

### PARAMETERS <a href="#parameters" id="parameters"></a>

#### Filter <a href="#filter" id="filter"></a>

```
-Filter <String>
   Filter the list of files you would like shown in the dialog box
   
   Note:  The default is ( *.* )
   
   <Type>String<Type>
   
   Required?                    false
   Position?                    1
   Default value                *.*
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### InitialDirectory <a href="#initialdirectory" id="initialdirectory"></a>

```
-InitialDirectory <String>
   Select the Initial directory to open the file select dialog box in.
   
   Note:  The default $env:Homedrive
   
   <Type>String<Type>
   
   Required?                    false
   Position?                    2
   Default value                $('{0}\' -f $env:HOMEDRIVE)
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### Multiselect <a href="#multiselect" id="multiselect"></a>

```
-Multiselect [<SwitchParameter>]
   Allow to select multple files
   
   Note:  The default is ( False )
   
   <Type>SwitchParameter<Type>
   
   Required?                    false
   Position?                    named
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### Description <a href="#description-1" id="description-1"></a>

```
-Description <String>
   Description or Caption to be presented in the dialog box.
   
   <Type>String<Type>
   
   Required?                    false
   Position?                    3
   Default value                Select a File
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### Walkthrough <a href="#walkthrough" id="walkthrough"></a>

```
-Walkthrough [<SwitchParameter>]
   An automated process to walk through the current function and all the parameters
   
   <Type>SwitchParameter<Type>
   
   Required?                    false
   Position?                    named
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  false
```

#### CommonParameters <a href="#commonparameters" id="commonparameters"></a>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
