using cmd file by c#

Signed-off-by: lilium-saber <WR364999428@hotmail.com>
GDN
lilium-saber 1 year ago
parent 9d00379e3a
commit 317e385d06

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Printing;
using System.Text;
using System.Threading.Tasks;
namespace WpfApp1.ScnToJson
{
internal class TranslationScnToJson
{
private String spath;//scn路径
private String dpath;//json路径
private String cmdHandle = "cd ";//cmd命令字符串
var p = new Process
{
StartInfo =
{
FileName = "cmd.exe",
WorkingDirectory = @"/c " + this.cmdHandle,
}
};
}
}

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
<appSettings>
<!-- When using an API key to access Google spreadsheets -->
<add key="GoogleApiKey" value="" />
<!-- Instead of using an API key, you can also use a service account. This way, you don't have to make your spreadsheet public. -->
<!-- To use a service account, download its private key and store it in a file called "google-service-account.json" -->
<add key="MonospaceCharactersPerLine" value="50" />
<add key="ProportionalFontName" value="Franklin Gothic Book" />
<add key="ProportionalFontSize" value="40" />
<add key="ProportionalFontBold" value="false" />
<add key="ProportionalLineWidth" value="1000" />
<add key="SecondaryProportionalLineWidth" value="670" />
</appSettings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

@ -0,0 +1,2 @@
<?xml version="1.0"?>
<names xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

@ -0,0 +1,7 @@
Excel:
VNTextPatch extractlocal <folder containing original game files> script.xlsx
VNTextPatch insertlocal <folder containing original game files> script.xlsx <folder to receive patched game files>
JSON:
VNTextPatch extractlocal <folder containing original game files> <folder to receive .json files>
VNTextPatch insertlocal <folder containing original game files> <folder containing .json files> <folder to receive patched game files>
Loading…
Cancel
Save