Making scripts on Windows

Get help, report and discuss bugs.
Post Reply
Bob4K
Posts: 5
Joined: 01 Mar 2017, 14:02

Making scripts on Windows

Post by Bob4K » 01 Mar 2017, 14:14

Hi,

I'm new with NZBget, and I'm having some trouble understanding how to make extension scripts on Windows.

On the setting GUI, I set up "ScriptDir" to: d:\m1\nzbget

On d:\m1\nzbget, I created a post.bat file:

Code: Select all


@echo off
goto start:
###########################################
### NZBGET POST-PROCESSING SCRIPT       ###
 
########################################
:start
d:\m1\sedit\obj\xed\wsrexx.exe d:\m1\rcmd\prompt Testing

wsrexx is a custom REXX interpreter I wrote that I want to use for my scripts.

On a command prompt windows, hitting "post" works, my interpretter displays the 'Testing' message on a Windows GUI message box.

But when NZBget finishes a download, nothing happens.

I must be missing one step or two here, what are they?

In particular, I tried to follow this advice:

Code: Select all


Option ScriptDir defines the location of extension scripts. To make a script available in NZBGet put the script into this directory. Then go to settings tab in web-interface (if you were already on settings tab switch to downloads tab and then back to settings tab to reread the list of available scripts from the disk).

Menu at the left of page should list all extension scripts found in ScriptDir. Select a script to review or change its options (if it has any).

but I don't see any menu at the left.

hugbug
Developer & Admin
Posts: 7566
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Making scripts on Windows

Post by hugbug » 01 Mar 2017, 14:18

The script must be selected for nzb. In the list of downloads click on a download, then button "Postprocess".

Or use option "Extensions" ("PostScript" in older nzbget versions) to automatically select script for new downloads.

Bob4K
Posts: 5
Joined: 01 Mar 2017, 14:02

Re: Making scripts on Windows

Post by Bob4K » 01 Mar 2017, 14:31

hugbug wrote:The script must be selected for nzb. In the list of downloads click on a download, then button "Postprocess".

Or use option "Extensions" ("PostScript" in older nzbget versions) to automatically select script for new downloads.
Wow, that was a fast reply, and it worked.

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests