Split-Path, Get-ChildItem – Splitting file names in PowerShell

Wolfgang Sommergut

Wolfgang Sommergut 0 comments

Wolfgang Sommergut has over 20 years of experience in IT journalism. He has also worked as a system administrator and as a tech consultant. Today he runs the German publication WindowsPro.de.

When working with file names, you occasionally have to extract the drive, path, or file name. The cmdlets Get-ChildItem and Split-Path will do the job. The latter is also able to parse paths in the registry or in AD if you mount them as drives.

Copyright © 2006-2015, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0

Wolfgang Sommergut

Wolfgang Sommergut 0 comments

Wolfgang Sommergut has over 20 years of experience in IT journalism. He has also worked as a system administrator and as a tech consultant. Today he runs the German publication WindowsPro.de.

When working with file names, you occasionally have to extract the drive, path, or file name. The cmdlets Get-ChildItem and Split-Path will do the job. The latter is also able to parse paths in the registry or in AD if you mount them as drives.

Copyright © 2006-2015, 4sysops, Digital fingerprint: 3db371642e7c3f4fe3ee9d5cf7666eb0

Source from..