Create a new text file with notepad, and paste the following code into the document. Save the file as prowl.cmd. Remember to replace the x's at "set API=" with your prowl API code. Also be sure to edit the location "C:\prowl.vbs" to the location you choose to save your prowl.vbs file.
Code: Select all
set API="xxxxxxxxxxxxxxxxx"
Set Item=%3
setlocal enableextensions
set var_=%Item%
endlocal & set FileName=%var_%
Set desc="%FileName%"
set priority=0
cscript C:\prowl.vbs %API% %priority% %desc%
Code: Select all
API = WScript.Arguments.Item(0)
priority = WScript.Arguments.Item(1)
desc = WScript.Arguments.Item(2)
set oHTTP = CreateObject("MSXML2.ServerXMLHTTP.6.0")
oHTTP.open "Get", "https://api.prowlapp.com/publicapi/add?" & "apikey=" & API & "&priority=" & priority & "&application=SABnzbd File Downloaded&event=" & Date() & " " & Time() & "&description=" & desc ,false
oHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
oHTTP.send
HTTPPost = oHTTP.responseText