exe/bat files not found in the path

camacazze

New Member
Messages
1
I have a Lenovo Ideapad s510p running original Windows 8.1. Bought it in May'14.

The problem is that it's not able to find & run some bat & exe files given in the '%Path'. Whereas it can find some - it can't find some others. So it doesn't run them unless full path is specified.

This is a big issue. The Path & PATHEXT variables are configured properly.

Here they are:

"PATH" user variable: "C:\Users\Mayank\AppData\Roaming\npm\; C:\Program Files\MySQL\MySQL Server 5.6\bin\;"

"Path" System variable: "C:\Program Files (x86)\iis express\PHP\v5.3;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft\Web Platform Installer\;;C:\Program Files (x86)\nodejs\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\; %JAVA_HOME%\bin; %GRAILS_HOME%\bin\; C:\Program Files\MySQL\MySQL Server 5.6\bin\;C:\Program Files\Windows NT\Accessories;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\; C:\Program Files\MySQL\MySQL Server 5.6\bin"

"PATHEXT" systems variable: ".EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"

Now for instance the MySql 5.6 binaries are in the path. But I am not able to run them from command prompt without specifying the full path.
 

My Computer

System One

  • OS
    Windows 8.1
It might depend upon where you are starting from at the Command Prompt. The default path is C:\Users\logon name> so that would have to be changed to the Folder holding the .exe or .bat file. It's a DOS thing, been around for years. To start type C:\ at the prompt to get back to the root of the drive then start going into the Folder desired, e.g. at C:\> type CD\Users\Mayank\Music to get to that Folder then do a DIR /S to see the files in it sorted by name, subFolders first then back at the prompt type the file name including extension.
 

My Computer

System One

  • OS
    WinXP, WinVista, Win7, Win8.1, Win10, Linux Mint 20
    Computer type
    PC/Desktop
    System Manufacturer/Model
    2 Customs and 12 OEM/Brands
    CPU
    AMD and Intel
A few years ago we ( IT dept I was in at the time) found that some bug in java (JRE developer I think it was) caused the path to not function correctly anything in the path after the section was ignored the fix was to place that part of the path at the end of the path statement.

Look at the location of the files that will not work correctly you may find that everything after a certain path statement does not function, fix is to move the offending path statement to the very end.
 

My Computer

System One

  • OS
    Win 8 and Linux (MINT)
    Computer type
    Laptop
    System Manufacturer/Model
    Lenovo Win 8 & Toshiba Linux
    Monitor(s) Displays
    Samsung SyncMaster
Why do you have a user and system PATH variable? Get rid of the user path by changing it's name then test, see what happens.
 

My Computer

System One

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz
    Motherboard
    Lenovo
    Memory
    16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
    Graphics Card(s)
    Intel Integrated HD Graphics
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    HP h2207
    Screen Resolution
    1680x1050@59Hz
    Hard Drives
    250GB Samsung EVO SATA-3 SSD;
    2TB Seagate ST2000DM001 SATA-2;
    1.5TB Seagate ST3150041AS SATA
    PSU
    500W
    Keyboard
    Wired USB
    Mouse
    Wired USB
    Internet Speed
    3GB Up, 30GB Down
    Browser
    SeaMonkey
    Antivirus
    Windows Defender; MBAM Pro
    Other Info
    UEFI/GPT
    PLDS DVD-RW DH16AERSH
Back
Top