嗯,是不是在 build .7(.8)裡有什麼變動,還是我自己搞砸了?(我並沒有刻意做任何更動)我已經翻遍系統備份,回到 30 天前,下面這些檔案都沒看到任何變化。
這是 profile 裡顯示的指令字串:
PostCustomCommandPath=“E:\VideoCaptures\Cleaned Files\MCEBPostProcess.bat”
PostCustomCommandParameters=“%convertedfile%” %sourcefile% “%destinationpath%” 1080 .%convertedext% 0 %airmonth% %airday% %airyear% %season%##
PostCustomCommandHangPeriod=0
PostCustomCommandCritical=false
這是被呼叫的 .bat 檔:
@ECHO OFF
setlocal EnableDelayedExpansion
SET BatFile=“E:\VideoCaptures\Cleaned Files\TVTransfer.bat”
SET OutputFileName=“%~n1”
SET InputFileName=“%~n2”
SET FolderOutput=“%~3”
SET WideoWidth=“%~4”
SET OutputExtension=“%~5”
SET OutputFileSize=“%~z1”
SET OADMonth=“%~7”
SET OADDay=“%~8”
SET OADYear=“%~9”
SHIFT /4
SET SEASON=%~9
Call %BatFile% %OutputFileName% %InputFileName% %FolderOutput% %WideoWidth% %OutputExtension% %OutputFileSize% %OADMonth% %OADDay% %OADYear% %SEASON%
這才是真正幹活的 .bat 檔:
@ECHO ON
setlocal EnableDelayedExpansion
SET sPAT=“\SERVER\Recorded TV\Other Shows”
SET OUTPUT_NAME=“%~1”
SET INPUT_NAME=%~2
SET OUTPUT_FOLDER=%~3
SET VIEDO_WIDTH=%~4
SET OUTPUT_Ext=%~5
SET OUTPUT_FILE_SIZE_MB=%~6
SET OAD_MONTH=%~7
SET OAD_DAY=%~8
SET OAD_YEAR=%~9
SHIFT /4
SET SEASON=%~9
SET SEARCHNAME=
If “%OAD_MONTH%” == “” (
SET OAD_MONTH=NA
)
If “%OAD_DAY%” == “” (
SET OAD_MONTH=NA
)
If “%OAD_YEAR%” == “” (
SET OAD_MONTH=NA
)
If “%SEASON%” == “” (
SET SEASON=NA
)
echo.%OAD_MONTH%
echo.%OUTPUT_FILE_SIZE_MB%
::Todays Date
FOR %%A IN (%Date%) DO (
FOR /F “tokens=1-3 delims=/-" %%B in (”%%~A") DO (
SET MMDDYYYY=%%B-%%C-%%D
)
)
If %OAD_MONTH% NEQ NA (
SET MMDDYYYY=%OAD_MONTH%-%OAD_DAY%-%OAD_YEAR%
)
echo.%MMDDYYYY%
:: Only procc. the video files, otherwise just delete
If %OUTPUT_FILE_SIZE_MB% LEQ 200000000 (
DEL /q “%OUTPUT_FOLDER%%~1%OUTPUT_Ext%”
EXIT
)
::Remove any Spaces from Search Name
set HAYSTACK=%INPUT_NAME%
set HAYSTACK=%HAYSTACK: =%
echo.%HAYSTACK%
:: Grab the string before the first “-”.
for /f “delims=-” %%i in (“%HAYSTACK%”) do set string=%%i
SET SEARCHNAME=%string%
echo.%SEARCHNAME%
:: Get the Show Params
for /f “tokens=2-3 delims=;” %%A in (‘findstr /b /i “%SEARCHNAME%” “C:\FTPSyncFiles\Bat Files\SHOWPARMS.txt”’) do (
SET sPAT=%%A
)
echo This is the program path %sPAT%
:: Copy to the Server
If %sPAT% NEQ “” (
IF %SEASON% NEQ NA (
:: Check to see if Dir exist already
if NOT EXIST %sPAT%\SEASON-%SEASON% (
MD %sPAT%\SEASON-%SEASON%
)
:: Removed the use of OUTPUT_NAME becuase of special charictors and used %~1 (Which removes the quotes) instead
START "MCE Move" /b cmd /c move /y "%OUTPUT_FOLDER%\%~1%OUTPUT_Ext%" %sPAT%\SEASON-%SEASON%
:: Update the root directory with the current date using Touch.exe
touch -m %sPAT%
) ELSE (
:: Check to see if Dir exist already
if NOT EXIST %sPAT%\%MMDDYYYY% (
MD %sPAT%\%MMDDYYYY%
)
:: Removed the use of OUTPUT_NAME becuase of special charictors and used %~1 (Which removes the quotes) instead
START "MCE Move" /b cmd /c move /y "%OUTPUT_FOLDER%\%~1%OUTPUT_Ext%" %sPAT%\%MMDDYYYY%
:: Update the root directory with the current date using Touch.exe
touch -m %sPAT%
)
:: Delete the .properties files if present
DEL /q “E:\VideoCaptures\QSF%INPUT_NAME%.ts.properties”
DEL /q “E:\VideoCaptures\QSF%INPUT_NAME%.mpg.properties”
)