Sgt-Peppa
Nov 18th, 2003, 10:26 AM
Hey all,
I have a smal prob and I am really hoping someone knows an answer to it.
So heres what I do, I have a small app which needs to call a tool called gacutil. I do that using following code:
doRegsvcs.StartInfo.FileName = txtNetDir.Text + @"\\Primary Interop Assemblies\\gacutil";
doRegsvcs.StartInfo.Arguments= "/i " + txtNetDir.Text + @"\Primary Interop Assemblies\adodb.dll";
doRegsvcs.StartInfo.UseShellExecute = false;
doRegsvcs.EnableRaisingEvents = false;
doRegsvcs.StartInfo.RedirectStandardOutput = true;
doRegsvcs.StartInfo.CreateNoWindow = true;
doRegsvcs.Start();
finalStatus = finalStatus + doRegsvcs.StandardOutput.ReadToEnd().ToString();
doRegsvcs.WaitForExit();
doRegsvcs.Close();
So calling the app works,...but with one Problem:
the tool I am calling is saying that the function gacutil /i only takes one argument. Well as you can see I am only passing one argument. I figure that this tool I am calling is not supporting whitespaces in the Folder Names! So how can I get this tool to work? Is it possible to change to the directory and then perform the tool? Or does anyone know some sort of workaround?
Hope that makes sense, thanks in advance,
Stephan
I have a smal prob and I am really hoping someone knows an answer to it.
So heres what I do, I have a small app which needs to call a tool called gacutil. I do that using following code:
doRegsvcs.StartInfo.FileName = txtNetDir.Text + @"\\Primary Interop Assemblies\\gacutil";
doRegsvcs.StartInfo.Arguments= "/i " + txtNetDir.Text + @"\Primary Interop Assemblies\adodb.dll";
doRegsvcs.StartInfo.UseShellExecute = false;
doRegsvcs.EnableRaisingEvents = false;
doRegsvcs.StartInfo.RedirectStandardOutput = true;
doRegsvcs.StartInfo.CreateNoWindow = true;
doRegsvcs.Start();
finalStatus = finalStatus + doRegsvcs.StandardOutput.ReadToEnd().ToString();
doRegsvcs.WaitForExit();
doRegsvcs.Close();
So calling the app works,...but with one Problem:
the tool I am calling is saying that the function gacutil /i only takes one argument. Well as you can see I am only passing one argument. I figure that this tool I am calling is not supporting whitespaces in the Folder Names! So how can I get this tool to work? Is it possible to change to the directory and then perform the tool? Or does anyone know some sort of workaround?
Hope that makes sense, thanks in advance,
Stephan