Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function validateServerShare($a_server, $a_share)
- {
- $a_server = $a_server -replace'\',''
- $a_server = $a_server -replace'/',''
- $a_share = $a_share -replace'\',''
- $a_share = $a_share -replace'/',''
- $Path = "\$a_server$a_share"
- if(-not (Test-Path $Path))
- {
- haltError
- }
- return $Path
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement