usvpn Posted July 17, 2010 Posted July 17, 2010 Hi, I use this code in a loop to launch some files and wait for each one to close: Dim MyProcess As System.Diagnostics.Process MyProcess = New System.Diagnostics.Process() MyProcess.StartInfo.FileName = ProcessPath MyProcess.StartInfo.Arguments = "/quiet /norestart" MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal MyProcess.Start() MyProcess.WaitForExit() MyProcess.Close() However, I am not sure if I used MyProcess.StartInfo.Arguments in the correct format. To each file 2 arguments should be sent : /quiet and /norestart I just put both in double quotations is that the right way? Thanks :) Quote
Leaders snarfblam Posted July 17, 2010 Leaders Posted July 17, 2010 Looks alright. Are you having any issues with it? Quote [sIGPIC]e[/sIGPIC]
usvpn Posted July 17, 2010 Author Posted July 17, 2010 Looks alright. Are you having any issues with it? I heard that Arguments cannot have spaces and each switch should be sent separately, no I just wanna make sure :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.