=Edit-MountUnit start development
This commit is contained in:
parent
4bf2ff19f4
commit
40cb17d419
1 changed files with 10 additions and 0 deletions
10
base.linux/Edit-MountUnit.ps1
Normal file
10
base.linux/Edit-MountUnit.ps1
Normal file
|
@ -0,0 +1,10 @@
|
|||
[CmdletBinding()]param(
|
||||
[string]$MountPath,
|
||||
[switch]$NoAutoMount
|
||||
)
|
||||
|
||||
$local:pathChar = [IO.Path]::DirectorySeparatorChar
|
||||
$MountPath = Get-Path $MountPath
|
||||
$local:MountName = $MountPath -replace '-','\\x2d' -replace $pathChar,'-' -replace '^-','' -replace '-^',''
|
||||
|
||||
$MountName
|
Loading…
Add table
Add a link
Reference in a new issue