Many users, when typing in the console (or in the window utility program) a number of commands, some of which are "adb", "javac", "telnet", "fastboot" may experience a system failure to execute this command. And the accompanying message that the specified command "is not an internal or external command executable by a program or batch file» . This is usually due to the fact that the system does not have the path to the file serving this command, and also with the fact that required component 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).

Way to the required file usually written in a variable "PATH" system settings (there must be a clear path to the directory in which the specified files). 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 specified path to the clipboard (mark it with the cursor, and then press the Ctrl+C key combination).

  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 on “Ok”, then open the console again and type the desired 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. We find there " Telnet client“Place 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 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.

Utility command line 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 manually.

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 information displayed:

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 and COM ports)

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.

To determine the current state of the device, use the subcommand 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 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*"

Note - double quotes in the initial part of the network adapter identifier are required. Otherwise, the symbol & will be treated by the Windows CMD interpreter as a standard command concatenation symbol - 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 of the system (temporarily disable 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 a 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 ones, or the 64-bit version from the EWDK for Windows 10. The latter has not been tested in the 64-bit Windows XP environment.

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.

Let's return to solving my problem. In order to display all network devices existing in the system, you must enter the following:

C:\>devcon.exe find =net

The program displayed 7 devices! I have only 2 network ones on my server Intel cards® PRO /1000 EB Network Connection. But then I remembered that Device Manager does not display hidden devices. To see them, in the Device Manager window, select “View” -> “Show hidden devices” from the menu. Now everything is normal! :)

In order to disable all the network devices shown, you must issue the following command (it is better not to do this remotely!):

C:\>devcon.exe disable =net

Device Manager will honestly show us that all network devices are disabled. The network is completely down, which is what we needed.

In order to enable network devices, you must issue the command:

C:\>devcon.exe enable =net

Let's check whether all network devices are turned on in Device Manager.

We have two left to write batch file with the above commands to enable and disable network devices and make tasks based on them so that they are executed at the required time.

I just need to remind you that with the help of the DevCon program you can disable almost any device on your computer; you must use it very carefully! Do not disable devices using a mask, do not disable devices unknown to you, this way you can cause your operating system to become completely inoperable.