我想使用自定义对象代替ProcessStartInfo startInfo = new ProcessStartInfo
{
FileName = path
,Arguments = string.Join(" ", Args)
,UseShellExecute = false
,CreateNoWindow = true
,RedirectStandardOutput = true
,RedirectStandardError = true
//,RedirectStandardInput = true //This leads the process to crash!
};
Process myProcess = new Process
{
StartInfo = startInfo
};
myProcess.Start();
/*...*/
public void SendInput(string input)
{
//TODO: see how to send input to process' console
int result = SendMessage(myProcess.Handle, 0x000C, 0, input + '\n'); // Not working :(
}
例如
vue-meta
如何获取自定义定义对象<template>
.....
</template>
<script>
export default {
aboutMe: {}
}
</script>
。
PS:但是没有aboutMe
或data
谢谢!