ffmpeg 执行时如何隐藏控制台
@echo off
mkdir "My records"
set outputpath=My records\record_%date:~-2,2%%date:~-7,2%%date:~-10,2%_%time:~-11,2%%time:~-8,2%.mp3
ffmpeg -f dshow -i audio="Microphone (Realtek High Definition Audio)" -y -t 01:00:00 "%outputpath%"
FOR /F %%A IN ('CMDOW ˆ| FIND "HideMePlease"') DO CMDOW %%A /HID
答案1
我使用 vbs 文件来运行 ffmpeg.exe 并显示控制台
set objShell = createobject("wscript.shell")
objShell.Run("""options.bat"" ""-SignatureUpdate""") , 0