Page 1 of 1

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

Posted: March 1st, 2020, 8:01 am
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?

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

Posted: March 3rd, 2020, 2:05 pm
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!