问题标签 [system-information]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
11344 浏览

vb.net - 在 VB.net 中获取硬件制造商和系统型号?

我正在尝试使用 vb.net 获取硬件制造商(例如“Dell”)和型号(例如“Latitude E6320”),但我没有运气。

我试过了

虽然这会返回“Microsoft Corporation”而不是“Dell”。

0 投票
0 回答
2344 浏览

c++ - how to get motherboard serial number when /sys/class/dmi is not available on linux?

I need to bind the software key with the motherboard.

Everything seems ok on systems like Slackware, Debian and Arch which run as virtual machines in VirtualBox. (/sys/class/dmi/id/product_uuid)

Now we have industry pcs, which have Arch linux and when i try to find the information about motherboard it seems to be absent. There is no folder /sys/class/dmi. I then installed dmidecode and it failed to retrieve information with error No SMBIOS nor DMI entry point found, sorry.

Is there another way of getting the information i need?

If you know another, alternate or better, way of binding SW to HW then please do tell, but our goal is to let clients upgrade RAM, HDD, NIC or VGA without having us generate software serial for the new PC layout.

EDIT1: The software is created using c++, at this point i was only thinking of how to get the information using the bash script, as i can easily run the commands from my c++ program and get the output needed, but maybe there is another way using some c++ functions?

0 投票
0 回答
483 浏览

android - 如何获取有关android设备颜色深度的信息,显示器有多少种颜色?

是否有可能通过 SDK 获取有关 android 设备显示颜色深度的信息?

颜色深度是指 16m 色、256K 色等。

我知道这个元数据可能没用,但我的客户想要获取这些信息,但我找不到获取它的方法。

感谢大家。

0 投票
1 回答
300 浏览

c# - C# can't get the correct subnetmask

I am making a program that among other things collects system information. However I am having some problems obtaining the subnet mask. I am new to programming so this is probably related to my lack of skills. My code looks like this:

I only get 255.0.0.0 as a result. I have disabled or uninstalled the other network cards but I still get this result.

0 投票
1 回答
476 浏览

parsing - 如何解析命令中的信息并输出?

好几年没写批处理文件了,忘记怎么写了。我的代码显示操作系统名称。

代码:

然后它说

操作系统名称:Microsoft Windows 8.1

(中间有很大的空间)

我希望它显示操作系统名称而不实际输出“操作系统名称:”并拥有巨大的空间。任何帮助是极大的赞赏。

0 投票
0 回答
446 浏览

bash - Raspberry Pi:获取系统信息的命令和工具

我想写一个脚本来监控我的树莓派服务器。我找到了 和 之类的$ vcgencmd measure_temp命令$ free -o -h。还有其他有用的吗?(我对会导致性能问题的特性特别感兴趣。)

0 投票
1 回答
1300 浏览

c# - Dual Monitor Screen Capture issue

I have dual monitors and I am working on a product that allows you to record your computer screen. Currently, I am using the following code:

Rectangle screenArea = Rectangle.Empty; foreach (System.Windows.Forms.Screen screen in System.Windows.Forms.Screen.AllScreens){ screenArea = Rectangle.Union(screenArea, screen.Bounds); }

Which inevitably (in my case) records the entirety of the desktop. With the aspect ratio of both screens, where "screenArea" is the area being recorded. Is there a way in which I can specify the active monitor in which the program is running on?

Thanks for any help, Christopher.

0 投票
0 回答
496 浏览

android - 利用 Google 的模板用户反馈表

我想建立一个反馈页面。我注意到所有谷歌应用程序都使用相同的应用程序,并且在 Android L 中,这些页面的 UI 被操作系统覆盖,以有一个灰色的操作栏,标题中没有版本号。这让我想知道是否有一个 Android 组件我可以将反馈按钮指向在我的应用程序中打开本机反馈页面:文本字段、电子邮件选择、设备数据转储和发送按钮。

L 中的 Google 反馈页面从微调器菜单发送的电子邮件

0 投票
1 回答
2548 浏览

c# - 如何获取一些系统硬件信息?

我正在尝试编写一个程序来获取一些系统信息。
我们如何获得一些系统硬件信息,如 CPU、RAM、HDD、VGA、声音、显示器和其他输出?

0 投票
1 回答
167 浏览

java - 如何检查是否安装了软件是安装还是不使用 java

在java中我想检查是否安装了软件。如果已安装,请显示它。如果已卸载,则安装它。