0

Hi, I’m currently looking to write a program, most likely in Python. Now, I have an odd question. Is it possible to limit this program to running on specific hardware? Could I prevent it from running on a computer that doesn’t have a certain piece of hardware?

2
Contributors
3
Replies
15
Views
6 Months
Discussion Span
Last Post by Reverend Jim
1

Assuming it's a Windows program, you could run a WMI query to check for the presence of the particular hardware and abort if not found. Alternately, if you knew the name of the associated driver file you might, instead, check for the presence of that file.

Edited by Reverend Jim

0

Thank you! I think that might be just what I was looking for! Out of curiosity, is that a Windows-only thing, or is there something equivalent to a WMI query in Linux?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.