Welcome to Media Center Master!
A powerful solution for mastering your digital media library.
Supporting Emby, Kodi/XBMC/OSMC, Plex, Windows Media Center, and more!

Home Download Gallery Wiki Issue Tracker Licensing Forums

   FAQ  •  Search •  Login •  Register     
It is currently September 18th, 2018, 7:45 am

All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Post Processing Script
PostPosted: June 2nd, 2018, 11:35 pm 
Offline
Downloaded Clip

Joined: March 20th, 2017, 4:53 pm
Posts: 8
Hey all! So I'm having an issue recently trying to run a simple batch file for post-processing of movies. In MCM I have the following:

Program/batch file: c:\media\moveit.bat
Parameters: %F

My batch file contains:

Code:
@ECHO OFF

SET MOVIE="%~1"

   CD /D %1%
   IF EXIST *.mkv (
      CD \
      ECHO This is a *MKV VIDEO* and is being moved accordingly...
      MOVE %MOVIE% "z:\movies_new"
      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 *MP4 VIDEO* and is being moved accordingly...
      MOVE %MOVIE% "z:\movies_new"
      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 *AVI VIDEO* and is being moved accordingly...
      MOVE %MOVIE% "z:\movies_new"
      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 *TS VIDEO* and is being moved accordingly...
      MOVE %MOVIE% "z:\movies_new"
      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 *WMV VIDEO* and is being moved accordingly...
      MOVE %MOVIE% "z:\movies_new"
      EXIT 0
   )

EXIT 0


When I execute a post-processing I get this error:

Quote:
MCM: Post-processing running:
"c:\media\movieit.bat" "Z:\auto-scan\Zapped! (1982)"
MCM: There was an error during post-processing. The details are listed below:
-----------------------------------------------------------
[EXCEPTION] System.ComponentModel.Win32Exception
[MESSAGE] The system cannot find the file specified


any tips?


 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group



Copyright © 2009-2018, Media Center Master, Inc. All rights reserved.