Menu

Setting Notepad++ Current Working Directory

NppExec
wonea
2010-02-24
2013-05-21
  • wonea

    wonea - 2010-02-24

    Hello,

    I'm trying to execute a program relevant to the filepath, which the currently open file uses.  However, I've noticed whenever start an executable it looks to the "current working directory" C:\Program Files\Notepad++.  Here's the code I've tried so far, I've not succeeded in changing the CWD.  Please help!

    inputbox "Sort File?"
    env_set $(CWD) = "C:\"
    echo $(CWD)
    C:\filesorter.exe $(FILE_NAME) $(INPUT)
    env_unset $(CWD)

     
  • DV

    DV - 2010-02-25

    84th line of "NppExec.txt"

     
  • wonea

    wonea - 2010-02-25

    Thanks, I used CD to move myself around the filesystem, works beautifully now.

     

Log in to post a comment.

MongoDB Logo MongoDB