TinyURL is a web service that provides short aliases for long URLs. Here's a function to generate URL aliases using TinyURL's API. The returned URL is short and never expires.
Test it in your default browser:
(new-object -com shell.application).open($vug)
Theres also another guide on generating SnipURLs here:
Out-Twitter | SAPIEN Technologies
Source:$cript Fanatic: Generating TinyURLs from PowerShell
Code:
function New-TinyUrl($url){
(new-object net.webclient).downloadString("http://tinyurl.com/api-create.php?url=$url")
}
$vug = New-TinyUrl -url http://www.vistax64.com
$vug
(new-object -com shell.application).open($vug)
Theres also another guide on generating SnipURLs here:
Out-Twitter | SAPIEN Technologies
Source:$cript Fanatic: Generating TinyURLs from PowerShell
Last edited: