Code Comments
Programming Forum and web based access to our favorite programming groups.I would like to exec a windows script. Is there a way I can call a script from my application, wait for it to complete and then proceed with the rest of my code? I'm not even sure what commands I would use to even search on. Can someone please point me in the right direction? Thanks! --gloria
Post Follow-up to this messageFound what I needed. See below: Process putP = new Process(); putP.StartInfo.FileName = "script"; putP.StartInfo.Arguments = " arg1 arg2 etc"; putP.StartInfo.UseShellExecute = false; putP.StartInfo.WorkingDirectory = BAXscriptsdirStr; //Start the process putP.Start(); //Wait for the process to exit. putP.WaitForExit();
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.