[問題] 如何執行command line utilities from ASP.NET and C# code
請教前輩們
小弟需要在C#and ASP.NET 中呼叫一段CONNAMD LINE處理一些事情
比方說是去呼叫ZIP做壓縮的動作,還要帶變數給他
這要如何做呢?
網路找到的範例如下:
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();
psi.FileName = "notepad.exe";
psi.Arguments = "c:\\1.txt";
System.Diagnostics.Process.Start(psi);
在windows form可以執行,卻在web form的情況下失敗
請問該怎樣設定才能執行呢?
(使用者權限已為完全控制)
似乎得調整web.config?
m(_ _)m 求助 感恩
--
當愛來時..我接受...
當恐龍來時...我不接受.....
當你來搶我女友時....我放手..
當妳跟我說別離時....我不放手..
在互相矛盾的生活中.......
我找尋一個最完美的平衡點.............
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.250.231.166
推
01/08 13:30, , 1F
01/08 13:30, 1F
→
01/08 13:41, , 2F
01/08 13:41, 2F
推
01/08 16:25, , 3F
01/08 16:25, 3F
→
01/08 20:16, , 4F
01/08 20:16, 4F
→
01/08 20:17, , 5F
01/08 20:17, 5F
推
01/09 02:24, , 6F
01/09 02:24, 6F
→
01/09 19:59, , 7F
01/09 19:59, 7F