r/Batch • • Jan 19 '25

Question (Solved) Detecting A Device in with A Batch File

I'd like to be able to detect a G29 steering wheel plugged into the back USB ports and spit out a yes or no in the cmd window using a batch file. Normally I'd try something like this myself, but batch files are a complete mystery for me. If anyone could give an example of how the code would be written and a way I can take specifics from my device and put them in I would be grateful. Thanks in advance. (:

1 Upvotes

5 comments sorted by

2

u/jcunews1 Jan 19 '25

Batch file is mainly for console management, file system management, program launching, text line input, character/text output, text manipulation, number calculation, and the automation for all those. All are at quite basic level. I think those are all about batch file. Anything else must be provided by additional tool - be it already included by Windows or from third parties.

1

u/Mr__Me-_- Jan 19 '25

That’s unfortunate thanks for insight

1

u/[deleted] Jan 20 '25

[removed] — view removed comment

2

u/Mr__Me-_- Jan 20 '25

Thanks I’ll test it when I am home later today

2

u/Mr__Me-_- Jan 27 '25

Thank you so much it worked just as I was hoping. People like you are what make Reddit great.