34mehmet Posted June 16, 2016 Share Posted June 16, 2016 #include <array.au3> #include <WinAPIEx.au3> $names = ProcessList() ReDim $names[UBound($names)][3] For $i = 1 To UBound($names)-1 $names[$i][2] = _WinAPI_GetProcessFileName($names[$i][1]) Next _ArrayDisplay($names) Exit Merhaba autoitte yeniyim Görev yöneticisindeki exelerin çalışma yolunu bulmak istiyorum.. Örnegin C:\Program Files\CCleaner\CCleaner64.exe bu çalışan exe yolunu bulamıyor. C:\Program Files (x86)\AutoIt3\AutoIt3.exe bu exe yolunu buluyor. 64bit makinalarda .64bit sürümlü yada programfiles çalışan exe yollarını göstermiyor sadece 32bit exe sürümlerin exe yolunu gösteriyor. Nasıl bir kod ekleyebilrlm. Quote Link to comment Share on other sites More sharing options...
Mehmet Posted June 16, 2016 Share Posted June 16, 2016 @OSArch makrosu ile sistemi tespit edip ona göre exe ni çalıştırırsan olur Quote Link to comment Share on other sites More sharing options...
34mehmet Posted June 16, 2016 Author Share Posted June 16, 2016 amacım Program Files bulmak değil 64bit makinalarda task managerda çalışan exelerin bulunduğu exe yolunu bulmak Hangi exe nerde çalışıyor onu ögrenmek istiyorum. Görüşleriniz için sağ olun. Varsa örnek kodu paylaşırmısınız. Quote Link to comment Share on other sites More sharing options...
Extended Posted June 16, 2016 Share Posted June 16, 2016 Gayette buluyor sorun göremiyorum 64 bittekileri de görüyor. Quote Link to comment Share on other sites More sharing options...
34mehmet Posted June 17, 2016 Author Share Posted June 17, 2016 w7 64bit professional kullandım Sonuç aynı exe yollarını göstermiyor. İşletim sistemine göre farkmı var ,Siz hangi işletim sisteminde denediniz. Peki program çalışma ve kapanma zamanlarını nasıl alabilirim. Bana exe yolunu çalışma zamanı kapanma zamanı html sayfasına aktarmak istiyorum. Exe adı 1 Çalışma zamanı 1 Kapanma zamanı 1 Exe yolu --------------1---------------------------------1-------------------------------------1------------------- -------------1---------------------------------1-------------------------------------1------------------ --------------1---------------------------------1-------------------------------------1------------------- böyle şekilde basit bir şey yapmayı düşünüyorum.Görüşleriniz için sağolun. Quote Link to comment Share on other sites More sharing options...
Mehmet Posted June 26, 2016 Share Posted June 26, 2016 Global $zaman = @YEAR & "." & @MON & "." & @MDAY & " Saat: " & @HOUR & @MIN & "-" & @SEC Global $programimiz1 = "calc.exe" while 1 Sleep(1000) If ProcessExists($programimiz1)>0 then FileOpen(@ScriptDir & '\log.txt', 1) FileWrite(@ScriptDir & '\log.txt', $programimiz1 & " Açılma zamanı Açık olduğu süre " & $zaman & @CRLF) FileClose(@ScriptDir & '\log.txt') EndIf WEnd Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.