Advertisement
uriel1998

Untitled

Sep 24th, 2012
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. @echo off
  2. REM Name this BITLY.BAT
  3. REM Use it by typing BITLY.BAT LONGURLGOESHERE
  4. REM %1 is your long url
  5. REM I don't have a windows machine running to check this right now, so if it doesn't work
  6. REM try running it with TYPING the long url instead; that will tell you if it's a problem
  7. REM with the variable.
  8. REM clip refers to the program at http://bit.ly/OXD2l3
  9.  
  10.  
  11. 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