This project is read-only.

NAME

open-file

SYNOPSIS

Opens a file in the Visual Studio environment.

SYNTAX

open-file -file <String> <CommonParameters>

DESCRIPTION

Open the supplied file path in the appropriate default editor.

This command operates on file paths only; PSDTE provider paths are not supported.

PARAMETERS

-file <String>
the file to open

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?


<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS

System.String. The file path to open.

OUTPUTS

None.

EXAMPLES

EXAMPLE 1

C:\PS>open-file 'myfile.cs'

This example opens the file at c:\ps\myfile.cs in the source code editor.

EXAMPLE 2

C:\PS>ls | open-file;

This example opens every file in the c:\ps folder, using the appropriate editor for each individual file type.

Last edited Dec 30, 2011 at 4:35 AM by beefarino, version 1

Comments

No comments yet.