Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Join-Path

Join-Path - Powershell 1.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Join-Path

Description
Combine a path and child-path

Usage


Options


Example(s)
Join two paths:

PS C:\>join-path -path c:\docu* -childpath A*

The above will resolve to: C:\docu*\A*

Get ACL information for all of the .log files in the Windows directory beginning with k.
Display output as a table showing the MshPath and the owner of each file:

PS C:\>join-path -path c:\docu* A* -resolve

The above will resolve to:

C:\Documents and Settings\Administrator
C:\Documents and Settings\All Users

Display the registry keys in the HKLM\System hive that include "ControlSet":

PS C:\>set-location HKLM:
PS HKLM:\> join-path System *ControlSet* -resolve
HKLM:\System\ControlSet001
HKLM:\System\ControlSet002
HKLM:\System\CurrentControlSet