Menu

Long filenames in shortcuts.xml

2007-10-26
2012-11-13
  • Miro Kropáček

    Miro Kropáček - 2007-10-26

    Hi,

    I'm trying following command in shortcuts.xml (the latest version of npp):

    <Command name="ERisc ASM" Ctrl="no" Alt="yes" Shift="no" Key="65">c:\Program Files\ERisc Toolset\easm.exe &quot;$(FULL_CURRENT_PATH)&quot;</Command>

    However, I can't get it work with these blank spaces (Program_Files etc) -- when I replace that string with let's say c:\easm.exe, it works. I've tried "", '', &quot but nothing helps. Is there any solution for this?

    Thanks for any help.

     
    • Nobody/Anonymous

      try &quot;$(FULL_CURRENT_PATH)&quot;

      instead of

      "$(FULL_CURRENT_PATH)"

       
    • Nobody/Anonymous

      would say   &-q-u-o-t-;   without the lines in it

      instead of   " "

      Just thougt, you wrote it?

       
    • Nobody/Anonymous

      yes, of course I use &-q-u-o-t- for that env variable, my problem is how to write caller application's path with blanks -- i.e. Program [blank] Files\ERisc [blank] Toolset\easm.exe

       
    • Nobody/Anonymous

      So, i´ve got an solution for my "open direction from current file" Problem.

      I go to Run -> Run... and in new open Window i typed -> $(CURRENT_DIRECTORY) in empty field
      and then is the trick -> hit save! Then you can define what you want. :-))

      Perhaps that solved your blank space Problem, too!?

      Try it out.

      Regards

       
      • Nobody/Anonymous

        I'm afraid it doesn't :( Problem is not in the saving process but in the parsing -- when I define that path in GUI and save it, I see plain Program Files\ERisc Toolset\easm.exe in configuration file (i.e. no quotes or anything else surrounding that path). And of course, it doesn't work when I try to call that easm.exe from "Run" menu.

        I think it's bug in Notepad++ but I wonder how it's possible nobody noticed it yet..

         
        • Nobody/Anonymous

          one solution is to use the shortname ("dir C:\ /X" will show it)

           
        • Don HO

          Don HO - 2007-10-28

          > Problem is not in the saving process but in the parsing

          Yes, I confirm that.
          It'll be fixed in the next release.

          Don