Community
    • Login

    NPP EXEC - command line wrong

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 3.8k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Lisa NuxL Offline
      Lisa Nux
      last edited by Lisa Nux

      Hey there,
      I’ve tried to work on notepad with a text file and now I need to analyze it (with perl, needed scripts are provided).
      I have this command line:
      SET OUTFILE = C:\Users\Lisa\Desktop\UNi\WS1516\CT\output1.txt
      CMD /C
      C:\PERL\DWIMPERL\PERL\BIN\PERL.EXE C:\USER\LISA\DESKTOP\UNi\WS1516\CT\ PG_SCRIPTS\SAWOL_NITRA.PL DT “$(FULL_CURRENT_PATH)” >$(OUTFILE)
      CON_SAVETO $(OUTFILE)
      NPP_OPEN $(OUTFILE)

      all the paths are right, I tried several different options, but they actually should work.
      but then I get an error message saying:SET: OUTFILE = C:\Users\Lisa\Desktop\CT.txt
      $(OUTFILE) = C:\Users\Lisa\Desktop\CT.txt
      CMD /C
      Process started >>>
      <<< Process finished. (Exit code 0)
      C:\PERL\DWIMPERL\PERL\BIN\PERL.EXEC:\USER\Lisa\Desktop\CT\PG_SCRIPTS\check_001.PL DT “(FULL_CURRENT_PATH)” >(OUTFILE)
      CreateProcess() failed with error code 2:
      Das System kann die angegebene Datei nicht finden. (The system is not able to find the document)

      CON_SAVETO: C:\Users\Lisa\Desktop\CT.txt

      • OK, 826 bytes have been written to “C:\Users\Lisa\Desktop\CT.txt”
        NPP_OPEN: C:\Users\Lisa\Desktop\CT.txt
        ================ READY ================

      I am not sure how to solve this problem and I’m really desperate. Can anyone help me?

      Kind regards,
      Lisa

      1 Reply Last reply Reply Quote 0
      • Jim DaileyJ Offline
        Jim Dailey
        last edited by

        It looks like you do not have “CMD /C” and the PERL command on the same line.

        I think you have to do it like:

        cmd /c c:\perl\dwimperl\perl\bin\perl.exe c:\user...
        
        1 Reply Last reply Reply Quote 0
        • Claudia FrankC Offline
          Claudia Frank
          last edited by Claudia Frank

          Hello Lisa Nux,

          there are several issues here.

          First line sets an variable OUTFILE to C:\Users\Lisa\Desktop\UNi\WS1516\CT\output1.txt
          but the output states that it is OUTFILE = C:\Users\Lisa\Desktop\CT.txt ??

          Second line you open a command prompt with switch /C, which means cmd should terminate
          after command has been executed but you do not provide an command.

          Third line should execute perl with first parameter being the script which should get executed
          but, at least what you’ve provided, there is a space between \CT\ and PG_SCRIPTS… so perl
          cannot execute the script. Maybe that’s the source of the issue.

          and in this line
          C:\PERL\DWIMPERL\PERL\BIN\PERL.EXEC:\USER\Lisa\Desktop\CT\PG_SCRIPTS\check_001.PL DT “(FULL_CURRENT_PATH)” >(OUTFILE)

          there isn’t a space between PERL.EXE and C:\USER…

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors