Results 1 to 3 of 3

Thread: Calling process! **SOLVED**

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Calling process! **SOLVED**

    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:

    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
    Last edited by Sgt-Peppa; Nov 19th, 2003 at 04:09 AM.
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width