SharkyUA
11-05-2011, 14:02
Вот есть такой код:
If CheckBox_All_Ports.Checked = True Then
ToolStripStatusLabel_PortScanner_Status.Text = "Scanning...."
Wait = Process.Start(".\tools\CBPS.exe", MaskedTextBox_IP.Text & " 1 65535 TCP /noflood" & If(CheckBox_Write_log.Checked = True, "/L:.\logs\port_scan.log"))
Wait.WaitForExit()
ToolStripStatusLabel_PortScanner_Status.Text = "OK! Ports Scanned. Busy..."
End If
Мне нужно поправить что-бы если у меня CheckBox_Write_log.Checked = True то автоматически к параметрам запуска добавлялось /L:.\logs\port_scan.log
Заранее спасибо!
If CheckBox_All_Ports.Checked = True Then
ToolStripStatusLabel_PortScanner_Status.Text = "Scanning...."
Wait = Process.Start(".\tools\CBPS.exe", MaskedTextBox_IP.Text & " 1 65535 TCP /noflood" & If(CheckBox_Write_log.Checked = True, "/L:.\logs\port_scan.log"))
Wait.WaitForExit()
ToolStripStatusLabel_PortScanner_Status.Text = "OK! Ports Scanned. Busy..."
End If
Мне нужно поправить что-бы если у меня CheckBox_Write_log.Checked = True то автоматически к параметрам запуска добавлялось /L:.\logs\port_scan.log
Заранее спасибо!