Skip to content

Launch a Windows form to allow user selction of files and folders on local or network files systems.

License

Notifications You must be signed in to change notification settings

gbuktenica/FileSystemForms

Repository files navigation

FileSystemForms

License: MIT Copyright Glen Buktenica

Launch a Windows form to allow user selection of files and folders on local or network files systems.

Usage

Install-Module -Name FileSystemForms
Import-Module  -Name FileSystemForms

# Select the path and file name for a file to be written to.
$FileSavePath    = Select-FileSystemForm -Start ([Environment]::GetFolderPath('MyDocuments')) -Description "Save File" -Ext "csv" -File -Save

# Read the contents of a number of text files in to a variable.
$TextFileContent = Select-FileSystemForm -File -Ext txt -Start $PSScriptRoot | ForEach-Object {Get-Content $_}

# Read the path and file name for a file.
$FileOpenPath    = Select-FileSystemForm -File -ErrorAction Stop -Verbose

# Read the path of a folder / directory.
$FolderOpenPath  = Select-FileSystemForm 

Animation

Installation

On-line with PowerShell > 5.0

Install-Module -Name FileSystemForms

Offline

Copy FileSystemForms.psd1 and Select-FileSystemForm.ps1 to one of the locations contained in:

$Env:PSModulePath

About

Launch a Windows form to allow user selction of files and folders on local or network files systems.

Resources

License

Stars

Watchers

Forks

Packages

No packages published