Open-File

Open-File
NAME
    Open-File
    
SYNOPSIS
    Opens file in Powershell ISE.
    
    
SYNTAX
    Open-File [[-FileName] <String>] [<CommonParameters>]
    
    
DESCRIPTION
    Opens specified or latest created file. By default it will try to edit file with Powershell ISE  but if not found at system then it will open in notepad. 
    Not sure why it is working this way, just wanted to make it so I did.
    

PARAMETERS
    -FileName <String>
        
        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
    
    
        Author : Sebastian Ziółkowski
        Website: ziolkowsky.wordpress.com
        GitHub : github.com/ziolkowsky
    
    -------------------------- EXAMPLE 1 --------------------------
    
    PS>Open-File TestFile
    
    
    
    
    
    
    -------------------------- EXAMPLE 2 --------------------------
    
    PS>Open-File
    
    Opens latest created file.
    
    
    
    
    
RELATED LINKS
    https://ziolkowsky.wordpress.com/2022/04/16/open-file/
    https://github.com/ziolkowsky/ShellPowerFramework

0 Comments on “Open-File

Dodaj komentarz

Twój adres e-mail nie zostanie opublikowany.

*