DevCon device manager from the command line. Is not an internal or external command of an executable program (adb, javac, telnet, fastboot) Is not an internal or external command - how to fix

Many users, when typing in the console (or in the window utility program) a number of commands, one of which is "adb", "javac", "telnet", "fastboot" may experience a system failure to execute this command. And an accompanying message that the specified command "is not an internal or external command, executable program or batch file" . This is usually due to the fact that the path to the file servicing this command is not registered in the system, and also because the required component is simply not installed on the system. In this material I will tell you what the error “Is not an internal or external command of an executable program (adb, javac, telnet, fastboot)” is, and also how to fix it.

The essence and causes of dysfunction (adb, javac, telnet, fastboot)

As I mentioned above, the reason this message appears is that the system does not know the location of the files that are launched by these commands (usually the files have the same names as the commands, for example, the “fastboot” command is implemented through the file fastboot.exe).

The path to the desired file is usually specified in a variable "PATH" system settings (there must be a clear path to the directory in which the specified files are located). If the required paths are not specified there, then when you enter any of the described commands, the system responds that (file name) is not an internal or external command of an executable program.

Also, the reason for the lack of support for such commands (in particular, “telnet”) is the absence of this component in the system (you must install it yourself).

In the “Path” system variable, you need to specify the path to the directory where the file we are launching is located

Is not an internal or external command - how to fix it

To get rid of the error “Not an internal or external command,” you need to indicate to the system the path (in English – “path”) to the directories where the files we need are located.

To do this, you need to know exactly where these files are located (for example, “javac” may be located in the path C:\Program Files\Java\jdk 1.8.0.45\bin (instead of “jdk 1.8.0.45” there may be “jdk” with another number). You need to copy the specified path to the clipboard (mark it with the cursor, and then press the key combination Ctrl+C).

  1. Then go to the PC desktop, hover over “My Computer”, right-click, and select “Properties” from the menu that appears.
  2. In the window that opens, click on “Advanced system settings” on the left, and then on the “Environment Variables” button.
  3. In “System Variables”, look for the “Path” parameter, and add there after the semicolon the full path you copied earlier from the Program Files\Java directory.
  4. Confirm the changes by clicking “Ok”, then open the console again and type the right command(you can also reboot the system for prevention), the error can be eliminated.

An alternative may be to transfer non-running files to directories known to the system (for example, to the general root directory of the Windows OS, or to C:\Windows\System32), usually the system works with them quite correctly.

https://youtu.be/awfBpttu-g4

Also, in the case of some components (for example, “telnet”), problems with them arise due to their absence in the system, so they need to be reinstalled.

  1. In the case of “telnet”, this is done by going to “Control Panel” - “Programs and Features” - “Turn Windows components on or off”.
  2. Find “Telnet Client” there, put a checkmark to the left of it, and click on “Ok”.
  3. The program will be installed and the “telnet” functionality should work correctly.

Conclusion

The error “Not an internal or external command (adb, javac, telnet, fastboot)” usually occurs because the system does not have location information of this file(the latter is usually located in the “Path” variable), or the absence of a required component in the system. To correct the error “is not an internal or external command,” I recommend specifying the full path to the folder where the file is located in the “Path” parameter, as well as additionally installing the problematic components on the system (if they are not present initially). This will stabilize the system and fix the “Not an internal or external command” error on your PC.

"Tell me, where can I find out the password to the MultiKey archive?"

On the downloads page there is a password for all archives, it corresponds to the name of the site - " website"

"What is the difference between program testing services and key backup creation services?"

The program testing service includes a more complete analysis of the application under test, identifying and bypassing security mechanisms, and determining the overall strength of the protection.
The result of such testing, if successful, is the creation of test software (emulator) to bypass (disable) protective mechanisms and the creation of recommendations for strengthening protection.
The key backup service is the creation of a backup copy of data from the key, usually in the form of an emulator for this key.
Software analysis is not performed in this case, backup copy is formed based on data received from the user.

"What data will be needed when ordering testing or backup?"

When ordering software testing or key backup, the following data will be required:

  1. Security key dump - done by dumper for the corresponding key type.
  2. Log of connecting the key and launching the software under test. Logs are made by the UsbTrace program. How to remove logs correctly watch
  3. Program distribution. Required for software testing. For backup it is necessary in some cases.

“I can’t install multikey on Windows 7 64, when I run the installation it says the following: devcon is not an internal or external command, an executable program or a batch file?”

General procedure for installing the emulator on a 64-bit system.

  1. On 64-bit systems, installing the emulator is only possible in disable check mode digital signature drivers. To do this, at the beginning of the OS boot, press F8 and select the mode to disable driver digital signature verification. This action must be performed every time the OS starts, or to automate the process, use
  2. third party utilities type "dseo13b". Before installing (reinstalling) the emulator, you must remove old version(remove.cmd) and clear system files(infclean.exe).
  3. Specified programs
  4. are located in the emulator folder.

When you try to open any command through a utility window or console, you encounter an error - “File name” is not an internal or external command, executable program or batch file. The system stubbornly does not open the file for some reason and this fact is very annoying. The reason for this may be one of several options: the path to the file is incorrectly specified and the absence of a component in the system at all, i.e. it does not exist at the specified address.

The main reasons why the error “is not an internal or external command” appears

As already mentioned, one of the reasons is that the path to the file to be opened is incorrect. Usually the path to the file is specified in the “Path” variable in the system; the strict path to the directory in which the files are located must be specified. necessary files. If there are any errors in the settings when specifying a path in a variable, or when specifying a file name, then the system will generate exactly this error - “file name” is not an internal or external command executed by the program.

The first step is to specify the exact path of the “Path” variable to the operating system so that errors do not occur when opening the file. To do this, you need to know the location of the folder for sure. For example, let's turn to a program that will subsequently work with an executable file in a specific folder.

The Path variable is an operating system variable that is used to locate specified executable objects via the command line or terminal. You can find it in the panel Windows management. In new Windows versions and other operating systems, specifying manually is usually not required.

Specify the correct path in the path variable on Windows 7

To correctly specify the path, you need to know the exact location of the file. If the program file that needs to be opened is located on the disk in C:\Program Files\Java\jdk 1.8.0.45\bin, then this path must be copied and specified in the system variable for subsequent opening.


If the error appears again, try moving the program to the working directories of the disk with the installed operating system, for example /System32. Windows works with this directory more often.

Errors also occur due to missing program components. You can eliminate them by adding the necessary ones. Let's take the Telnet component as an example. To enable it, go to:


Set the “Path” variable in Windows 8/8.1/10

  1. Go to the “Control Panel”.
  2. Click the “Advanced system settings” link.
  3. Find "Environment Variables". In this section you need to select “Path”. Next, “Change”, if there is no ready one, create it again.
  4. In the “Change system variable” item, specify the value you need and confirm with the “Ok” button. Close all other windows by clicking “Ok”.
  5. Reopen the command line or terminal and try your query again. Everything should work fine now.

Command Line Utility DevCon.exe (Dev ice Con sole) is part of the Driver Development Kit (DDK) and comes with source code and documentation for English language. With it, you can turn on, turn off, restart, update, delete, and poll individual devices or groups of devices. DevCon also provides information needed by the driver developer that is not available through Device Manager. The DevCon utility can be used in all Windows versions older than Win2k, including 32 and 64 bit

DevCon command line format:

devcon.exe [-r] [-m:\\machine] command [ ...]

Command line options:

-r- if specified, then after executing the command the system is rebooted.

machine- name or IP address of the remote computer.

command- command executed by DevCon.

arg- arguments of the command to be executed.

To get help using the command, use the parameter help:

devcon.exe help- display quick help on using DevCon

devcon.exe help install- display help on using the command install

Command line options:

classfilter- Allow changing class filters.

classes- Display all device configuration classes.

disable- Disable devices that match a specific hardware or instance ID.

driverfiles- Display installed files drivers.

drivernodes- Display all device driver nodes.

enable- Enable devices that match a specific hardware or instance ID.

find- Find devices that match a specific hardware or instance ID.

findall- Find devices, including disconnected ones.

help- Display of help information.

hwids- Display equipment IDs.

install- Install the device in manual mode.

listclass- Display all devices for a setting class.

reboot- Reboot the local computer.

remove- Remove devices that match a specific hardware or instance ID.

rescan- Search for new equipment.

resources- Display device resources.

restart- Reboot devices that match a specific hardware or instance ID.

stack- Display the expected device driver stack.

status- Display the operating status of devices.

update- Update the device manually.

UpdateNI- Update the device manually without notifying the user.

SetHwID- Add, remove or change the order of hardware IDs for devices with root enumeration.

To use the utility DevCon.exe Administrative privileges are required ("Run as Administrator" in Windows environment Vista/Windows 7 - 10)

Examples of using the DevCon utility:

devcon -m:\\SERVER find pci*- display a list of all PCI devices on remote computer With name SERVER. Operating mode remote connection to another computer is implemented only for Windows XP / Windows Server 2003.

devcon -m:\\192.168.0.1 find pci* > C:\serverpci.txt- displaying a list of all PCI devices on a computer with an IP address 192.168.0.1 V text file C:\serverpci.txt

devcon find usb*- display a list of USB devices on local computer.

devcon find usbstor*- display only flash drives and removable drives connected to USB (class devices usbstor). A list of device classes can be obtained using the command devcon classes

devcon find =Display- display a list of class devices Dislpay.

devcon find *pnp07*- display a list of devices whose hardware identifier contains the string pnp07

devcon find *VEN_8086*- display a list of devices manufactured by Intel(Hardware Manufacturer ID contains the string VEN_8086)

PCI\VEN_1002&DEV_5964&SUBSYS_ 7C26174B&REV_01\ 4&38B71F77&0&0008: RADEON 9200 SE Family (Microsoft)

PCI\VEN_1002&DEV_5D44&SUBSYS_ 7C27174B&REV_01\ 4&38B71F77&0&0108: RADEON 9200 SE SEC Family (Microsoft)

PCI\VEN_10EC&DEV_8139&SUBSYS_ 813910EC&REV_10\ 4&2E98101C&0&48F0: Realtek RTL8139 Family PCI Fast Ethernet NIC

PCI\VEN_11AB&DEV_4320&SUBSYS_ 811A1043&REV_13\ 4&2E98101C&0&28F0: Marvell Yukon 88E8001/8003/8010

PCI Gigabit Ethernet Controller

PCI\VEN_11AB&DEV_5041&SUBSYS_ AD0E779F&REV_01\ 4&5D18F2DF&0: AT7B35J8 IDE Controller

PCI\VEN_8086&DEV_244E&SUBSYS_ 00000000&REV_C2\ 3&267A616A&0&F0: Intel(R) 82801 PCI - 244E

PCI\VEN_8086&DEV_24D0&SUBSYS_ 00000000&REV_02\ 3&267A616A&0&F8: Intel(R) 82801EB LPC- - 24D0

PCI\VEN_8086&DEV_24D1&SUBSYS_ 80A61043&REV_02\ 3&267A616A&0&FA: Intel(R) 82801EB Ultra ATA Storage - 24D1

PCI\VEN_8086&DEV_24D2&SUBSYS_ 80A61043&REV_02\ 3&267A616A&0&E8: Intel(R) 82801EB USB - - 24D2

PCI\VEN_8086&DEV_24D3&SUBSYS_ 80A61043&REV_02\ 3&267A616A&0&FB: Intel(R) 82801EB SMBus - 24D3

PCI\VEN_8086&DEV_24D4&SUBSYS_ 80A61043&REV_02\ 3&267A616A&0&E9: Intel(R) 82801EB USB - - 24D4

PCI\VEN_8086&DEV_24D5&SUBSYS_ 80F31043&REV_02\ 3&267A616A&0&FD: SoundMAX Integrated Digital Audio

PCI\VEN_8086&DEV_24D7&SUBSYS_ 80A61043&REV_02\ 3&267A616A&0&EA: Intel(R) 82801EB USB - - 24D7

PCI\VEN_8086&DEV_24DB&SUBSYS_ 80A61043&REV_02\ 3&267A616A&0&F9: Intel(R) 82801EB Ultra ATA Storage - 24DB

PCI\VEN_8086&DEV_24DD&SUBSYS_ 80A61043&REV_02\ 3&267A616A&0&EF: Intel(R) 82801EB USB2 - - 24DD

PCI\VEN_8086&DEV_24DE&SUBSYS_ 80A61043&REV_02\ 3&267A616A&0&EB: Intel(R) 82801EB USB - - 24DE

PCI\VEN_8086&DEV_2570&SUBSYS_ 00000000&REV_02\ 3&267A616A&0&00: Intel(R) 82865G/PE/P/GV/82848P CPU - I/O - 2570

PCI\VEN_8086&DEV_2571&SUBSYS_ 00000000&REV_02\ 3&267A616A&0&08: Intel(R) 82865G/PE/P/GV/82848P CPU - AGP - 2571

18 matching device(s) found on \\SERVER

To display a list of devices, including missing or disabled ones, use the subcommand findall

devcon -m:\\comp findall *VEN_10ec*- display a list of manufacturer devices Realtek(VEN_10EC), including missing ones, on the remote computer comp. (Windows XP/Windows Server 2003 only).

devcon.exe resources *- display a list of all devices and all system resources they use.

Example of displayed information:

ACPI\FIXEDBUTTON\2&DABA3FF&0

Name: Device is not using any resources.

ACPI\GENUINEINTEL_-_X86_FAMILY_15_MODEL_4\_0

Name: Intel(R) Pentium(R) 4 CPU 2.40GHz

Device is not using any resources.

ACPI\PNP0000\4&35F762C4&0

ACPI\PNP0100\4&35F762C4&0

Name: Device has the following resources reserved:

ACPI\PNP0200\4&35F762C4&0

Name: Device has the following resources reserved:

ACPI\PNP0303\4&35F762C4&0

Name: Device is currently using the following resources:

Name: Device is currently using the following resources:

ACPI\PNP0700\4&35F762C4&0

Name: Device is currently using the following resources:

For each device, its name and a list of used resources are displayed:

IO: 03f0-03f5- range of I/O ports (3f0-3f5).
DMA: 2- DMA channel number (for example, channel 2)
IRQ: 6- number of interrupt used by the device (for example 6).
MEM: fed20000-fed8ffff- range of addresses used random access memory

devcon resources=ports- display resources used by class devices ports. This class includes controllers for parallel and serial I/O ports ( LPT ports and COM)

devcon driverfiles =net- display a list of used drivers network devices(device class net). Displays device name, source installed driver, paths and filenames:

Driver installed from c:\windows\inf\netrtsnt.inf . 1 file(s) used by driver:

C:\WINDOWS\system32\DRIVERS\RTL8139.sys

PCI\VEN_11AB&DEV_4320&SUBSYS _811A1043&REV_13\ 4&2E98101C&0&28F0

Name: Marvell Yukon 88E8001/8003/8010 PCI Gigabit Ethernet Controller

Driver installed from c:\windows\inf\oem6.inf . 1 file(s) used by driver:

C:\WINDOWS\system32\DRIVERS\yk51x86.sys

ROOT\MS_L2TPMINIPORT\0000

Name: Driver installed from c:\windows\inf\netrasa.inf . No files used by driver

devcon stack =net > stack-net- write to a text file stack-net class driver stack Net. The stack includes a device driver, a low and high filter, and a system service that serves the device.

PCI\VEN_10EC&DEV_8139&SUBSYS _813910EC&REV_10\ 4&2E98101C&0&48F0

Name: Realtek RTL8139 Family PCI Fast Ethernet NIC

Setup Class: (4D36E972-E325-11CE -BFC1-08002BE10318) Net

Controlling service:

PCI\VEN_10EC&DEV_8139&SUBSYS _813910EC&REV_10\ 4&2E98101C&0&48F0- device instance code.
Name- Name
Setup Class- installation class.
Controlling service- management service.

For determining current state devices subcommand is used status:

devcon status ROOT\RDP*- display the status of drivers whose identifiers begin with a string ROOT\RDP, i.e. used by the Terminal Service.

Installing a new device is only possible on a local computer and requires the presence of an INF file:

devcon -r install %WINDIR%\Inf\Netloop.inf *MSLOOP- install a new instance of the loop adapter. Key -r Requires a reboot after installing the driver.

To change driver filters, use the following commands:

devcon classfilter upper !filter1 !filter2- remove two specified top filters. The deletion action sign is the symbol ! before the filter name.

devcon classfilter lower !badfilter +goodfilter- replace the bottom filter "badfilter" with "goodfilter".

Changes to filters take effect either when the main driver is restarted or when the computer is rebooted. Detailed help on managing filters can be obtained using the command devcon help classfilter

The DevCon utility allows you to stop, start or restart individually selected devices or groups of devices.

devcon disable=mouse- disable class device driver mouse, i.e. turn off the mouse.

devcon enable=mouse- enable class device driver mouse

devcon restart=mouse- restart the class device driver mouse

In the practice of network administration, the team DevCon often used to restart network adapters. For example, for network adapter Realtek RTL8139, with ID PCI\VEN_10EC&DEV_8139 . . . you can use the command:

devcon restart "PCI\VEN_10EC&DEV_8139*"

Please note that double quotes at the beginning of the network adapter identifier are required. Otherwise, the symbol & will be processed by the interpreter CMD Windows as a standard symbol for combining commands - commands devcon restart "PCI\VEN_10EC and teams DEV_8139*. The first one will perform a restart for everyone existing Realtek adapters in the system, and the second will cause a message that DEV_8139* is not an internal or external command, executable program or batch file.

Very often the DevCon utility is used to block network activity system (temporarily disabling all network devices):

devcon disable =net

Also, the utility can be used to restart frozen modems and wireless USB adapters using a scheduler and a script that checks the availability of a node on the Internet and executes the command devcon restart in case of its unavailability.

The DevCon command returns the following ErrorLevel codes:

0 - command completed successfully;
1 - you need to restart the computer;
2 - command not executed;
3 - syntax error.

As mentioned above, the utility devcon is not a standard component of the system and is not installed with Windows, however, it can be downloaded as part of some service packages from Microsoft ( Windows Driver Kit, Visual Studio,Windows SDK for desktop apps). The utility can be extracted from the listed packages and, for ease of use, added to the directory present in the search paths of executable files specified by the variable PATH, for example \Windows\system32.

Please note that the 64-bit version of the utility devcon64 does not work on 64-bit Windows 10 (Windows 8, 8.1, Windows 7). It was developed only for 64-bit Windows XP. If you have another Windows OS, use either the 32-bit version DevСon.exe, which works perfectly in all versions of Windows older than Windows 2000, including 64-bit, or the 64-bit version from the EWDK for Windows 10. The latter has not been tested on the 64-bit Windows XP.

A page with a description in English and a link to download DevCon as part of packages for driver developers on the Microsoft website. - This page does not have a direct link to download DevCon, but, for example, there is a link to a page with current version Enterprise Windows Driver Kit (EWDK), along with instructions for downloading and installing it. All packages that include the DevCon utility have an impressive volume - you will have to download several gigabytes of data. After installing the selected package, you will need to determine the location of the files DevCon, and if necessary, add the path of the executable files to the system variable PATH or copy them to an existing directory for searching.

Download the ZIP archive of the 32-bit DevCon.exe utility. Works on 32- and 64-bit Windows Vista, Windows 7 and later.

Download a ZIP archive of the DevCon.exe utility, developed only for 64-bit Windows XP. Not Works on 64-bit Windows Vista, Windows 7/8 and later.

Download the ZIP archive of the DevCon.exe utility for 32- and 64-bit OSes from the package Enterprise Windows Driver Kit for Windows 10, version 1804(EWDK). Tested on Windows server OS and 32-bit and 64-bit Windows 7-10.