PackageDeployment Module Help

Package Deployment Module

Read-MidString Cmdlet

Version 4.0.0.5

Read-MidString

Synopsis

Copy Substring from String

Syntax

Read-MidString [-String] <String> [-Start] <String> [-Length] <String> [-ContinueOnError] [-ResultVariable] <String> [<CommonParameters>]

Description

Copies a substring of fixed length starting at a specific string character and stores the substring 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

2

Accepts pipeline input

False

-ResultVariable <String>

A variable that collects the result.

Required

True

Position

3

Accepts pipeline input

False

-Start <String>

String character after which the substring is determined. The count starts from the left (1 = first character).

Required

True

Position

1

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".