Re: [問題] 逸散字元是否能夠不用呢?
部分原始碼:
private void button1_Click_1(object sender, EventArgs e)
{
Process.Start("C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\
powershell.exe", test.Text);
}
test為richtextbox
內容為
@"
function aa{
"hello world"
}
aa
read-host
"
hello world兩邊的"如果不改成\"
那powershell就會跑失敗...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.73.237.242
推
12/20 01:26, , 1F
12/20 01:26, 1F
→
12/20 01:32, , 2F
12/20 01:32, 2F
→
12/20 01:34, , 3F
12/20 01:34, 3F
推
12/20 01:47, , 4F
12/20 01:47, 4F
→
12/20 01:48, , 5F
12/20 01:48, 5F
→
12/20 15:42, , 6F
12/20 15:42, 6F
推
12/20 22:09, , 7F
12/20 22:09, 7F
討論串 (同標題文章)
完整討論串 (本文為第 3 之 3 篇):