Jump to content

Program Sonlandırma


pilgetir
 Share

Recommended Posts

merhaba forumda arama yaptım lakin sadece görev yönetici apzsi çıktı benim yapmak istediğim şey diyelim bilgiayarımda xxx.exe dosya var ben butona tıkladığımda bu programı kapatacak.

 

Bunu naısl yapıldığını gerçektn unuttum :(

Link to comment
Share on other sites

System.TerminateProcess(9999);

Sondaki sayı process ID si. Çalışan programın ID numarasını eklendinmi o programı kapatıyor.

hocam o programın ıd bilgisini naısl bulacağım ismi değişebiliyor ondan sordum ismi yazdığımız da kapatıyordu onu bulamıyorum

 

pilgetir, bu kadar çok soru sorduğuna göre büyük bir proje yapıyorsun. projeden biraz bahsetsene bize.

büüyk bir proje değil abi anasayfasasını değiştircek birde butona basınca istediğim uygulamayı kapatacak hepsi bu

Link to comment
Share on other sites

İki farklı şekilde yapabilirsin ;

 

File.Run komutuyla CMD üzerinden taskkill /f /im ornek.exe komutu göndererek ;

 

veya

 

System.EnumerateProcess komutuyla tüm işlemleri tabloya döküp ID numarasını aldıktan sonra TerminateProcess komutu göndererek.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...