< Back

Open-PSISEFile

Mon Jan 13, 2020 6:15 am

NAME Open-PSISEFile



SYNOPSIS

Open a file using Powershell ISE.





SYNTAX

Open-PSISEFile [-Path] <String[]> [-AsCopy <SwitchParameter>] [<CommonParameters>]



Open-PSISEFile [-Path] <String[]> [[-TabNumber] <Int32>] [-AsCopy <SwitchParameter>] [<CommonParameters>]



Open-PSISEFile [-Path] <String[]> [[-TabName] <String>] [-AsCopy <SwitchParameter>] [<CommonParameters>]





DESCRIPTION

Open a file using Powershell ISE.





PARAMETERS

-Path <String[]>

The path to the file to open.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-AsCopy [<SwitchParameter>]

Create a new tab and insert the contents of the file.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-TabNumber <Int32>

Open the file under a specific PowerShell tab.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-TabName <String>

Open the file under a specific PowerShell tab.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









NOTES









-------------------------- Example 1 --------------------------



Open-PSISEFile -Path TestScript.ps1



This command will open the TestScript.ps1 file on the current tab.







-------------------------- Example 2 --------------------------



Open-PSISEFile -Path TestScript.ps1 -TabName Exchange



This command will open the TestScript.ps1 file on the tab named "Exchange".







-------------------------- Example 3 --------------------------



Open-PSISEFile -Path TestScript.ps1 -AsCopy



This command will create a new empty file and copy the contents of TestScript.ps1 to it.









RELATED LINKS