Files

<< Click to Display Table of Contents >>

RayPack > 7.3 u6 > User Guide > Command Line Tools > PowerShell Automation 

Files

Import-File

Imports a file from the specified path to the RayPack project.

 

Name 

Type 

Mandatory 

Description 

Project

RayPackFile

Yes

The source project.

File

FileInfo

Yes

The name of a table to update.

The row ID to be removed.

 

 

ComponentId

String

Yes (only if -DirectoryID is not being used)

The identifier of the component to which the file will be imported.
 
This switch is mutually exclusive with the switch -DirectoryId. It is mandatory though to set either one or the other switch.

FeatureId

String

No

The identifier of the feature to which the file will be imported. The component will be created automatically.

DirectoryId

String

Yes (only if -ComponentID is not being used)

The identifier of the directory to which the file will be imported. The component will be created automatically.
 
This switch is mutually exclusive with the switch -ComponentId. It is mandatory though to set either one or the other switch.

ForceOwnComponent

Switch

No

If set, the action will continue even if the row does not exist. If unset, the removal of non-existing rows throws an exception.

 

Returns a collection of added rows (RayPackRow[])

 

Update-File

Updates a file within the RayPack project.

 

Name 

Type 

Mandatory 

Description 

Project

RayPackFile

Yes

The source project.

File

FileInfo

Yes

The name of a table to update.

The row ID to be removed.

 

 

FileID

String

Yes

The file identifier of a file to be replaced.

UpdateChecksum

Switch

No

If set, the MSI checksum will be recalculated and written to the checksum table.

UpdateAttributes

Switch

No

If set, the attributes will be re-read from the source.

 

This command let does not return any value.