C#控制台应用程序
我正在尝试从C#控制台应用程序中渲染Adobe After After效果组成,但它不起作用。它甚至没有给出任何错误,代码执行顺利。
字符串strcmdtext = @“”“ c:\\ program Files \\ adobe \\ adobe effects效果2022 \\支持文件\\ aerender -project c:\\ forradio \\ forradio \\ ae_comp \\ ae_comp \\ inputscenes.aep.aep” ;
system.diarostics.process.start(“ cmd.exe”,strcmdtext);
Process cmd = new Process();
string strCmdText = @"""C:\\Program Files\\Adobe\\Adobe After Effects 2022\\Support Files\\aerender -project C:\\ForRadio\\AE_Comp\\InputScenes.aep""";
cmd.StartInfo.FileName = "cmd.exe";
cmd.StartInfo.Arguments = strCmdText;
cmd.Start();
我尝试了代码的变化,并且没有抛出任何错误。当我在命令提示符中运行此命令时,它可以正常工作,但是当我在C#Console应用程序中执行时不行。 c:\\ program Files \\ adobe \\ adobe effects 2022 \\支持文件\\ aerender -project c:\\ forradio \\ ae_comp \\ inputscenes.aep.aep
I'm trying to render an Adobe After Effects composition from a C# Console Application but it's not working. It doesn't even give any error, the code executes smoothly.
string strCmdText = @"""C:\\Program Files\\Adobe\\Adobe After Effects 2022\\Support Files\\aerender -project C:\\ForRadio\\AE_Comp\\InputScenes.aep""";
System.Diagnostics.Process.Start("CMD.exe", strCmdText);
Process cmd = new Process();
string strCmdText = @"""C:\\Program Files\\Adobe\\Adobe After Effects 2022\\Support Files\\aerender -project C:\\ForRadio\\AE_Comp\\InputScenes.aep""";
cmd.StartInfo.FileName = "cmd.exe";
cmd.StartInfo.Arguments = strCmdText;
cmd.Start();
I have tried both the variations of code and it's not throwing any error. When I run this command in the command prompt it works, but not when I execute from within my C# console app.C:\\Program Files\\Adobe\\Adobe After Effects 2022\\Support Files\\aerender -project C:\\ForRadio\\AE_Comp\\InputScenes.aep
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论