17-10-12, 05:06 PM
كاتب الموضوع : AhmedEssawy
تشغيل باتش من command line application دون اي اهتمام للنتائج :Running a command line application, without concern for the results:
كود :
[color=#0000ff][FONT=Courier New]Private[/FONT][/color] [color=#0000ff][FONT=Courier New]Sub[/FONT][/color] Button1_Click([color=#0000ff][FONT=Courier New]ByVal[/FONT][/color] sender [color=#0000ff][FONT=Courier New]As[/FONT][/color] System.[color=#0000ff][FONT=Courier New]Object[/FONT][/color], _
[color=#0000ff][FONT=Courier New]ByVal[/FONT][/color] e [color=#0000ff][FONT=Courier New]As[/FONT][/color] System.EventArgs) [color=#0000ff][FONT=Courier New]Handles[/FONT][/color] Button1.Click
System.Diagnostics.Process.Start([color=#ff0000][FONT=Courier New]"C:\listfiles.bat"[/FONT][/color])
[color=#0000ff][FONT=Courier New]End[/FONT][/color] [color=#0000ff][FONT=Courier New]Sub[/FONT][/color]