can to use cmd

Signed-off-by: lilium-saber <WR364999428@hotmail.com>
GDN
lilium-saber 1 year ago
parent 0ccf2337a1
commit 17eba24fc5

@ -1,27 +1,33 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Printing;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace WpfApp1.ScnToJson
{
internal class TranslationScnToJson
{
private String spath;//scn路径
private String dpath;//json路径
private String cmdHandle = "cd ";//cmd命令字符串
private string spath;//scn路径
private string dpath;//json路径
private string cmdHandle = "cd E:\\programingg\\vsprogam\\testRjgc\\VNT\\VNTextPatch";//cmd命令字符串
private string voice = ".\\VNTextPatch extractlocal E:\\programingg\\vsprogam\\testRjgc\\VNT\\p1 E:\\programingg\\vsprogam\\testRjgc\\VNT\\p2";//VNTextPatch extractlocal <folder containing original game files> <folder to receive .json files>
public void StartTrans()
{
var p = new Process
{
StartInfo =
{
FileName = "cmd.exe",
WorkingDirectory = @"/c " + this.cmdHandle,
FileName = "PowerShell.exe",
Arguments = "/c " + cmdHandle + "\n" + voice,
UseShellExecute = false,
CreateNoWindow = false,
}
};
p.Start();
p.WaitForExit();
p.Close();
}
}

Loading…
Cancel
Save