PackageDeployment Module Help

Package Deployment Module

Read-LeftString Cmdlet

Version 4.0.0.5

Read-LeftString

Synopsis

Extract substring from the left side of the string

Syntax

Read-LeftString [-String] <String> [-Length] <String> [-ResultVariable] <String> [-ContinueOnError] [<CommonParameters>]

Description

Copies a fixed number of characters starting at the left side of a string and stores the resulting string in a variable.

Parameters

-ContinueOnError <SwitchParameter>

Continues script execution in spite of errors in the respective command

Required

False

Position

Named

Accepts pipeline input

False

-Length <String>

Number of characters to copy (0 = no character).

Required

True

Position

1

Accepts pipeline input

False

-ResultVariable <String>

A variable that collects the result.

Required

True

Position

2

Accepts pipeline input

False

-String <String>

The string from which characters should be copied.

Required

True

Position

0

Accepts pipeline input

False

<CommonParameters>

For more information about common parameters, type "Get-Help about_CommonParameters".