Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- REM Name this BITLY.BAT
- REM Use it by typing BITLY.BAT LONGURLGOESHERE
- REM %1 is your long url
- REM I don't have a windows machine running to check this right now, so if it doesn't work
- REM try running it with TYPING the long url instead; that will tell you if it's a problem
- REM with the variable.
- REM clip refers to the program at http://bit.ly/OXD2l3
- curl -s --data "login=YOURUSERNAME&apiKey=YOURAPIKEY&longUrl=%1&format=txt" http://api.bitly.com/v3/shorten | clip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement