Mercurial > codedump
changeset 104:2e115eb60be8
god.bat: does the file even exist?
committer: GitHub <noreply@github.com>
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Thu, 22 Sep 2022 08:33:37 -0400 |
parents | 1cc4f545a260 |
children | bf6d6304f6f7 |
files | god.bat |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/god.bat Thu Sep 22 00:01:37 2022 -0400 +++ b/god.bat Thu Sep 22 08:33:37 2022 -0400 @@ -22,6 +22,15 @@ setlocal EnableDelayedExpansion call :argparser %* if %count% LSS 3 goto usage +if not exist "%inputmp4%" ( + call :error "Input MP4 file doesn't exist!" + goto usage +) +if not exist "%inputwav%" ( + call :error "Input WAV file doesn't exist!" + goto usage +) +if exist "%outputmp4%" call :warning "Output MP4 file already exists!" REM mp4 barely supports flac, matroska ftw REM REM vegas pro sucks and has barely any support @@ -100,4 +109,4 @@ :info echo [INFO]: %~1 -exit /b 0 \ No newline at end of file +exit /b 0