我正在测试一个仍在制作中的批处理文件,我想在第 6 行而不是第 1 行打开它,因为我已经运行了那部分代码。由于我使用 ffmpeg,因此运行它需要几分钟。
这是代码的第一个区域
@Echo off
set /p IPath=Enter the Path of the file you wish to remux from (use "Copy as path" option and keep the Quotations):
set /P M=what is the first letter of the path of your new file?(do not include the semicolon(:))
set /p NewPath=Enter the Path you wish to remux to (must be path minus the directory BUT do not use Quotations for this)(I also recommend using a single folder to hold the files while remuxing them before sending them to their separate folders):
ffmpeg -i %IPath% -c copy -map 0 "%M%:\%NewPath%"
goto :Premiere &:: This command takes inputs from the previous lines and sets up to remux files
:Premiere &:: this command line starts the preferred editor and waits 30 seconds to allow it to start
set /p EDITOR=Enter the .exe file for your prefered editor should look like: 'Adobe Premiere Pro.exe':
start "" "%EDITOR%"
echo Starting Process. . . Please Wait
timeout /t 30
tasklist | find /I "%EDITOR%" &:: The next couple of lines test for the editor to see if it opened or not
if errorlevel 1 (
echo could not start process
goto :FailEditor
) Else (
echo Process completed, next question--->
goto :choice
)
因此,我不是从第 1 行开始,而是从第 6 行开始,以绕过代码中最长的部分。
我认为它类似于
Start M:\REMUX.bat at line 6
但是这AT
是一个命令来告诉启动批处理文件的时间所以我不确定