Jump to content

Sistem Sürümünü Algılatma


turkoglu98
 Share

Recommended Posts

arkadaşlar bir programım için sistemin (xp win7 , win8 yada win10 lardan biri) ne olduğunu algılatmam gerekti 

win7 ve xp de sorunsuz çalışan bir koum var ama win8 e gelince boş gösteriyor win10 de de aynı hatayı verdi.

windows8 i de algıtamam için ne yapabilirim


arkadaşlar buldum 

 

ostype = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows NT\\CurrentVersion", "ProductName", true);
bu mesela "Windows 8.1 Pro" diye sonuç veriyor
ben programımda şu kodu kullanıcam
osver = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows NT\\CurrentVersion", "CurrentVersion", true);
buda XP ile "5.1" windows 7 ise "6.1" windows 8 ise "6.3" sonucunu veriyor
Link to comment
Share on other sites

  • 2 years yıl...

ip= File.Run(_SystemFolder.."\\cmd.exe", "wmic csproduct get name","", SW_HIDE, false);  

 Dialog.Message("İp Adresiniz : ",ip) 

 

bu adresi cmd den nasıl  cekebiliriz

 

ekran=Registry.SetValue(HKEY_LOCAL_MACHINE,"HARDWARE\\DESCRIPTION\\System\\BIOS","SystemProductName",false);

 Label.SetText("Label20", ekran);

bu adres hata veriyor veri çekemiyorum anakart bilgisi nasıl çekebilirim true veya false yi denedim olmadı

Link to comment
Share on other sites

Quote

arkadaşlar bir programım için sistemin (xp win7 , win8 yada win10 lardan biri) ne olduğunu algılatmam gerekti 

win7 ve xp de sorunsuz çalışan bir koum var ama win8 e gelince boş gösteriyor win10 de de aynı hatayı verdi.

windows8 i de algıtamam için ne yapabilirim

 

arkadaşlar buldum 

 

ostype = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows NT\\CurrentVersion", "ProductName", true);
bu mesela "Windows 8.1 Pro" diye sonuç veriyor
ben programımda şu kodu kullanıcam
osver = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows NT\\CurrentVersion", "CurrentVersion", true);
buda XP ile "5.1" windows 7 ise "6.1" windows 8 ise "6.3" sonucunu veriyor

 

 

SO = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "ProductName", true)
Version = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "CurrentVersion", true)

Architecture_SO = System.Is64BitOS();
if Architecture_SO ==false then
Architecture_SO_S = "32 bits";
end
if Architecture_SO ==true then
Architecture_SO_S = "64 bits";
end

Label.SetText("Sistema", "Operating System: "..SO.. "");
Label.SetText("Architecture", "Architecture: "..Architecture_SO_S.. "");

 

 

 

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...