processo Word, tramite un progetto Windows Application.
VB.Net
Dim ProcWord As System.Diagnostics.Process()
Do
ProcWord = Process.GetProcessesByName("WINWORD")
If (ProcWord.Length > 0) Then
ProcWord(0).Kill()
System.Threading.Thread.Sleep(300)
End If
Loop While (ProcWord.Length > 0)
C#
System.Diagnostics.Process[] ProcWord;
do
{
ProcWord =System.Diagnostics.Process.GetProcessesByName("WINWORD");
if (ProcWord.Length > 0)
{
ProcWord[0].Kill();
System.Threading.Thread.Sleep(300);
}
} while (ProcWord.Length > 0);
Nessun commento:
Posta un commento