Differences
This shows you the differences between the selected revisions of the page.
2018-07-04 | 2018-07-04 | ||
asd (46.95.160.243) (hidden) (untrusted) | Result will be automatically added to clipboard (46.95.160.243) (hidden) (untrusted) | ||
Line 23: | Line 23: | ||
# @option RootPath -site textbox "&URL root path (optional):" | # @option RootPath -site textbox "&URL root path (optional):" | ||
# @option HostName -site textbox "&Web server hostname override (optional):" | # @option HostName -site textbox "&Web server hostname override (optional):" | ||
- | # @option - group "Options" | ||
- | # @option Pause checkbox "Display URL" "-pause" "-pause" | ||
- | # @option Clipboard checkbox "Copy URL to clipboard" "-clipboard" "-clipboard" | ||
- | # @option Open checkbox "Open URL in web browser" "" "-open" | ||
# @optionspage ~~SELF~~#options | # @optionspage ~~SELF~~#options | ||
Line 97: | Line 93: | ||
$url = "$protocol$hostName$rootPath$urlPath" | $url = "$protocol$hostName$rootPath$urlPath" | ||
+ | $result += $url | ||
if ($paths.Count -gt 1) | if ($paths.Count -gt 1) | ||
{ | { | ||
Line 106: | Line 103: | ||
Start-Process $url | Start-Process $url | ||
} | } | ||
+ | } | ||
+ | |||
+ | if ($pause) | ||
+ | { | ||
+ | Write-Host -NoNewline $result | ||
} | } | ||
Add-Type -Assembly PresentationCore | Add-Type -Assembly PresentationCore |