Menu

NppExec problem with environment variables

NppExec
2016-04-11
2016-04-11
  • Marko Pinteric

    Marko Pinteric - 2016-04-11

    test.bat:


    @echo off
    echo %PROGRAMFILES(x86)%
    echo %PROGRAMFILES%


    When I run this batch file from MSDOS box I get
    C:\Program Files (x86)
    C:\Program Files
    If I run it from NPPEXEC I get
    C:\Program Files (x86)
    C:\Program Files (x86)
    Something is wrong and I cannot figure what.

    Please advice.

    Best regards,

    Marko

     
  • DV

    DV - 2016-04-11

    Notepad++ and NppExec are 32-bit. Therefore %PROGRAMFILES% for them is the same as %PROGRAMFILES(x86)%.
    For example, see explanations here: http://serverfault.com/questions/413320/programfiles-differences-on-64bit-windows

     

Log in to post a comment.