Generating TinyURLs or SnipURLs from PowerShell

dmex

ɠɛɐǨ
Vista Guru
Gold Member
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.
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
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
 
Last edited:

My Computer

Back
Top