Results 1 to 4 of 4

Thread: Automate Command Prompt Window (CMD) and doing many commands at a time

Threaded View

  1. #4
    Fanatic Member AceInfinity's Avatar
    Join Date
    May 2011
    Posts
    696

    Re: Automate Command Prompt Window (CMD) and doing many commands at a time

    Ahh, I wasn't thinking.. And the reason is because the code there is just using the Process class alone. Why not p/Invoke AllocConsole and use that for the entire session? There's shouldn't be a reason to run a batch file. Hiding that allocated console wouldn't be difficult at all either with the p/Invoke'd ShowWindow function.
    Last edited by AceInfinity; May 13th, 2013 at 05:25 PM.
    <<<------------
    Improving Managed Code Performance | .NET Application Performance
    < Please if this helped you out. Any kind of thanks is gladly appreciated >


    .NET Programming (2012 - 2018)
    ®Crestron - DMC-T Certified Programmer | Software Developer
    <<<------------

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