Permission issue of System.Diagnostics.Process# DotNet - 窗口里的风景
c*t
1 楼
I had the following code snippets, [Code-I] and [Code-II] failed; [Code-III]
succeeded! myFullPathCmd is to print some web page into PDF. I ran:
"myFullPathCmd myParas" in Dos, which succeeded. I guess it's due to
profile
(permission). I logged in as a member of local admin account (XP Pro + SP2).
..
Very frustrated... can anyone help?
[Code-I]
System.Diagnostics.Process proc = new System.Diagnostics.Process();
try{
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = myFullPathCmd;
succeeded! myFullPathCmd is to print some web page into PDF. I ran:
"myFullPathCmd myParas" in Dos, which succeeded. I guess it's due to
profile
(permission). I logged in as a member of local admin account (XP Pro + SP2).
..
Very frustrated... can anyone help?
[Code-I]
System.Diagnostics.Process proc = new System.Diagnostics.Process();
try{
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = myFullPathCmd;