How to use post process enviroment variables in batch script on Windows

Come up with a useful post-processing script? Share it here!
Post Reply
SharkyMcSAB
Newbie
Newbie
Posts: 1
Joined: February 29th, 2020, 5:57 pm

How to use post process enviroment variables in batch script on Windows

Post by SharkyMcSAB »

I am trying to make a basic post processing batch script for SABnzbd. I have read though the documentation, but when it comes to the environment variables I don't really understand how these can be used.

Can someone please try to explain how they can be used in a batch script. A simple example will probably help me a lot on my way.

By the way, the documentation says "On Windows, the requirement is that the script's extension is listed in your system's PATHEXT environment variable.". Does this just mean that SABnzbd.exe should be listen in PATH? Or am I missing something?
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: How to use post process enviroment variables in batch script on Windows

Post by safihre »

Usually on Windows it should work out of the box to run bat scripts.
If I'm not mistaken you can just use:
%SAB_VARIABLE%
where of course VARIABLE should be replaced with the thing you wanna use!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply