dim startinfo as system.diagnostics.processstartinfo = new processstartinfo( "sc ", "config alerter start= disabled ") dim myprocess as system.diagnostics.process
或者用shell方法的第二个参数 private sub button3_click(byval sender as system.object, byval e as system.eventargs) handles button3.click dim cmd as string = "notepad.exe "