Batch file in %PATH% won't run on Windows 10 RRS feed

  • Question

  • On my Windows 10 machine, I can type "nt_clean" and from a different bin directory that's in the %PATH%, nt_clean.bat will run. I can also type nt_clean.bat, and the same program will run. Great.

    A colleague on Windows 10 trying to use the same set of tools at a similar command prompt (Windows-R; cmd) can type "nt_clean.bat" and the program in his %PATH% will run, but if he types "nt_clean" Windows will tell him "nt_clean not found". 

    I've never seen that before. Is there some group policy thing that could change this behavior? Or...???

    • Moved by Bill_Stewart Friday, March 15, 2019 3:00 PM Not a scripting question
    Friday, December 7, 2018 8:43 PM

All replies

  • Check the pathext environment variable.

    C:\WINDOWS\system32>set pathext

    Friday, December 7, 2018 9:36 PM
  • NT_CLEAN is not a windows program or batch file. It may be a file distributed by third party software.

    It is also a known malware file.


    • Edited by jrv Friday, December 7, 2018 9:46 PM
    Friday, December 7, 2018 9:44 PM
  • Thanks for the reply. I don't know about the nt_clean.bat you're talking about, but the one I'm talking about is not malware. Yes, it is 3rd party software. It cleans object files from subdirectories so that one can do a new nmake and each object file will be rebuilt.

    I think MotoX80 has provided the answer though; I'll confirm with my colleague and report back. 

    • Edited by Roadworrier Saturday, December 8, 2018 4:01 AM
    Saturday, December 8, 2018 4:01 AM
  • In any case this is not a scripting question.  System installation and configuration issue should be asked in the appropriate Windows forum.

    This form is for techs writing scripts and not for support of third party utilities.  Contact the vendor for support if your vendor supplied utility does not work.


    Saturday, December 8, 2018 4:24 AM