Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If $CmdLine[0]>1 then
- Local $filename = StringTrimLeft($CmdLine[1], StringInStr($CmdLine[1], "\", 0, -1)) ; search for the last \ and trim everything on the left of it
- Local $url = $CmdLine[2]
- ClipPut($url & $filename)
- ;ClipPut("https://dl.dropbox.com/u/55553666/screenshots/myFile.png") - that's what finished string looks like
- elseif $CmdLine[0] == 1 then
- beep(700,100)
- MsgBox(0, "Not enough arguments", "Your URL (prefix) is missing as 2nd argument!")
- else
- beep(700,100)
- MsgBox(0, "No arguments passed", "You must pass a filename (1) and URL (2) as arguments!")
- endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement