NPP.EXEC and perl & # 8594; save exit?

I am using Notepad ++ under Windows 7. I used the npp.exec plugin for Perl applications and it worked fine with the following code:

SET OUTFILE = C:\00_Data\output.txt
cmd /c 
c:\perl64\bin\perl.exe C:\00_Data\Scripts8\gra.pl dt "$(FULL_CURRENT_PATH)" >$(OUTFILE) 
NPP_OPEN $(OUTFILE)

      

Since my update of Notepad ++ to version 6.6.9 starts from a Perl script, the results are written to the console (everything is fine), but a specific output file is created and opened, but empty, meaning the results are not saved.

Does anyone know what is going wrong?

+3


source to share


1 answer


You can use the Run menu from Notepad ++ to run the Perl file directly.

  • Go to Run
  • Enter C:\strawberry\perl\bin\perl.exe "$(FILE_NAME)"

    or specify the path to the perl exe file.
  • Click Save
  • Assign shortcut.


The console is closed pretty quickly with this method, so add [system("pause");]

a Perl to your file to display the "print any key to continue" message in the console.

0


source







All Articles