[已解决]批处理文件打开不正确 [英] [Resolved] Batch file open incorrect

查看:92
本文介绍了[已解决]批处理文件打开不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我正在使用FFMpeg创建一个屏幕录像机。

一切正常,如果我双击.bat文件,我会获得.mkv文件。

但是,自动,如果我使用

  Process.Start <打开.bat文件/ span> 批处理文件的路径),

批处理文件失败,因为.bat中的所有%%都替换为%。我试图逃避使用%%%%但没有工作。



谢谢!



P.S.我用批处理文件路径替换了路径到批处理文件。



它不适用于%%或%%%%,因为ffmpeg.exe路径不是< pre lang =vb> ProcessStartInfo.WorkingDirectory





这是项目路径\ bin\debug 文件夹。很抱歉在没有检查汽车的情况下询问。 :D

解决方案

检查汽车。

检查ffmpeg images文件夹是否为Process.WorkingDirectory。

检查图像是否是png文件。

检查代码是否有问题。


Hi!
I'm creating a screen recorder using FFMpeg.
All works, if i double click a .bat file i obtain a .mkv file.
But, automatic, if i open the .bat file using

Process.Start("Path to batch file"), 

the batch file fails because all %% from the .bat are replaced with %. I tried to escape using %%%% but not working.

Thanks!

P.S. I replaced Path to batch file with my batch file path.

It doesn't worked with %% or %%%% because ffmpeg.exe path wasn't

ProcessStartInfo.WorkingDirectory



It was the Project path\bin\debug folder. Sorry for asking without checking the Autos. :D

解决方案

Check the autos.
Check if ffmpeg images folder is the Process.WorkingDirectory.
Check if images are png files.
Check if there are some problems with your code.


这篇关于[已解决]批处理文件打开不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆