Features of DevCon
- Descriptive driver packages.
- Show device status.
- INF files.
- Compatibility along with device setups.
- Perform Enable and Disable functions of a device.
- Search for devices and IDs(hardware IDs, device instance IDs, etc).
Syntax of DevCon command:
devcon [/m:\\computer] [/r] command [arguments]
Batch Script – Device Console
A batch script is a text file that includes various sequential commands. It is used to evaluate repetition routines in Windows, OS/2, and DOS operating systems and is used in network and system administration. A batch file refers to a file that stores command in a serial order. The library has been modified by Windows which can be used in Batch Script for coordination with the system devices. This is called a device console (DevCon.exe). The developer can easily use the DevCon to check the installation and configuration of a driver, which includes the INF files(driver package). Users can also perform installation, start, stop, etc. in scripts to test the driver files. It is a command-line tool that executes device management on the computer system.
DevCon kit can be located on the given below location after getting installed.
%WindowsSdkDir%\tools\x64\devcon.exe
%WindowsSdkDir%\tools\x86\devcon.exe
%WindowsSdkDir%\tools\arm\devcon.exe