Don't forget to use double '%%' in the batch file. I get the error:
( was unexpected at this time I found the solution
hereHere is what mine looks like:
@ECHO OFF
REM **
REM ** If SabNZBd says the processing completed successfully...
REM **
IF %%7 == 0 (
CD /D %%1
IF EXIST *.mkv (
REM **
REM ** ... and this folder has an MKV video, then we must have downloaded a movie or TV episode ...
REM **
CD \
ECHO This is a *VIDEO* and is being moved accordingly...
MOVE %%1 E:\Downloads\MediaMaster_Parser
EXIT 0
)
IF EXIST *.mp4 (
REM **
REM ** ... or this folder has an MP4 video, then we must have downloaded a movie or TV episode ...
REM **
CD \
ECHO This is a *VIDEO* and is being moved accordingly...
MOVE %%1 E:\DONE\MediaMaster_Parser
EXIT 0
)
IF EXIST *.avi (
REM **
REM ** ... or this folder has an AVI video, then we must have downloaded a movie or TV episode ...
REM **
CD \
ECHO This is a *VIDEO* and is being moved accordingly...
MOVE %%1 E:\DONE\MediaMaster_Parser
EXIT 0
)
IF EXIST *.ts (
REM **
REM ** ... or this folder has a ts video, then we must have downloaded a movie or TV episode ...
REM **
CD \
ECHO This is a *VIDEO* and is being moved accordingly...
MOVE %%1 E:\DONE\MediaMaster_Parser
EXIT 0
)
IF EXIST *.wmv (
REM **
REM ** ... or this folder has a wmv video, then we must have downloaded a movie or TV episode ...
REM **
CD \
ECHO This is a *VIDEO* and is being moved accordingly...
MOVE %%1 E:\DONE\MediaMaster_Parser
EXIT 0
)
REM **
REM ** ... otherwise ...
REM **
CD \
ECHO This is a miscellaneous download and is being moved accordingly...
MOVE %%1 E:\DONE\Other
EXIT 0
)
REM **
REM ** Tell SabNZBd that all is well with our script.
REM **
EXIT 0